map<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult map<TResult extends Object?>(
  1. {required TResult linear(
    1. LinearGradient value
    ),
  2. required TResult radial(
    1. RadialGradient value
    ),
  3. required TResult sweep(
    1. SweepGradient value
    )}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult map<TResult extends Object?>({
  required TResult Function(LinearGradient value) linear,
  required TResult Function(RadialGradient value) radial,
  required TResult Function(SweepGradient value) sweep,
}) =>
    throw _privateConstructorUsedError;