inherit static method
Widget
inherit({
- required BuildContext from,
- required Widget child,
- List<
FirebaseUIAction> actions = const [],
Inherits a list of actions from the context and provides those to the
child
.
Implementation
static Widget inherit({
/// A [BuildContext] to inherit from.
required BuildContext from,
/// A [Widget] to wrap with [FirebaseUIActions].
required Widget child,
/// A list of [FirebaseUIAction]s to provide to the [child].
List<FirebaseUIAction> actions = const [],
}) {
final w = maybeOf(from);
if (w != null) {
return FirebaseUIActions(
actions: [...w.actions, ...actions],
child: child,
);
}
return child;
}