maybeWhen<TResult extends Object?> method
Null safety
- {TResult widget(
- Widget child,
- PlaceholderAlignment alignment,
- TextBaseline? baseline,
- TextStyle? style
- TResult text(
- String? text,
- List<
InlineSpan> ? children, - TextStyle? style,
- MouseCursor? mouseCursor,
- Callback? onTap,
- String? semanticsLabel,
- Locale? locale,
- bool? spellOut
- required TResult orElse(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(Widget child, PlaceholderAlignment alignment,
TextBaseline? baseline, TextStyle? style)?
widget,
TResult Function(
String? text,
List<InlineSpan>? children,
TextStyle? style,
MouseCursor? mouseCursor,
Callback? onTap,
String? semanticsLabel,
Locale? locale,
bool? spellOut)?
text,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;