maybeWhen<TResult extends Object?> method
Null safety
- {TResult item(
- Key? key,
- String? value,
- Callback? onTap,
- bool enabled,
- double height,
- EdgeInsets? padding,
- TextStyle? textStyle,
- MouseCursor? mouseCursor,
- Widget? child
- TResult divider( )?,
- TResult checked(
- Key? key,
- String? value,
- bool checked,
- bool enabled,
- EdgeInsets? padding,
- double height,
- MouseCursor? mouseCursor,
- Widget? child
- required TResult orElse(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(
Key? key,
String? value,
Callback? onTap,
bool enabled,
double height,
EdgeInsets? padding,
TextStyle? textStyle,
MouseCursor? mouseCursor,
Widget? child)?
item,
TResult Function(Key? key, double height)? divider,
TResult Function(
Key? key,
String? value,
bool checked,
bool enabled,
EdgeInsets? padding,
double height,
MouseCursor? mouseCursor,
Widget? child)?
checked,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;