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