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