whenOrNull<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
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;