when<TResult extends Object?> method
Null safety
- {required TResult all(
- Radius radius
- required TResult circular(
- double radius
- required TResult vertical( ),
- required TResult horizontal( ),
- required TResult only( )}
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(Radius radius) all,
required TResult Function(double radius) circular,
required TResult Function(Radius top, Radius bottom) vertical,
required TResult Function(Radius left, Radius right) horizontal,
required TResult Function(Radius? topLeft, Radius? topRight,
Radius? bottomLeft, Radius? bottomRight)
only,
}) =>
throw _privateConstructorUsedError;