when<TResult extends Object?> method
Null safety
- TResult $default( ),
- {required TResult byIndex( )}
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>(
TResult Function(
Key? key,
bool selected,
Callback? onSelect,
Callback? onDeselect,
Callback? onLongPress,
MaterialStateProperty? color,
List<DataCell> cells)
$default, {
required TResult Function(
int? index,
bool selected,
Callback? onSelect,
Callback? onDeselect,
Callback? onLongPress,
MaterialStateProperty? color,
List<DataCell> cells)
byIndex,
}) =>
throw _privateConstructorUsedError;