maybeWhen<TResult extends Object?> method
TResult
maybeWhen<TResult extends Object?>({
- TResult point()?,
- TResult linestring()?,
- TResult polygon()?,
- TResult multiPolygon()?,
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(LatLng point, Color randomColor)? point,
TResult Function(List<LatLng> points, Color randomColor)? linestring,
TResult Function(List<LatLng> points, Color randomColor)? polygon,
TResult Function(List<List<List<LatLng>>> points, Color randomColor)?
multiPolygon,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;