ofType<T extends FlutterFireUIAction> static method

T? ofType<T extends FlutterFireUIAction>(
  1. BuildContext context
)

Implementation

static T? ofType<T extends FlutterFireUIAction>(BuildContext context) {
  final w = FlutterFireUIActions.maybeOf(context);

  if (w == null) return null;

  for (final action in w.actions) {
    if (action is T) return action;
  }

  return null;
}