maybeOf<P> static method

PagedDialogState<P>? maybeOf<P>(
  1. BuildContext context
)

Returns the ancestor paged dialog state, or null if none are found.

Implementation

static PagedDialogState<P>? maybeOf<P>(BuildContext context) =>
    context.findAncestorStateOfType<PagedDialogState<P>>();