maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult object(
    1. FormObjectField value
    )?,
  2. TResult map(
    1. FormMapField value
    )?,
  3. TResult string(
    1. FormStringField value
    )?,
  4. TResult bool(
    1. FormBoolField value
    )?,
  5. TResult double(
    1. FormDoubleField value
    )?,
  6. TResult int(
    1. FormIntegerField value
    )?,
  7. TResult num(
    1. FormNumField value
    )?,
  8. TResult dateTime(
    1. FormDateTimeField value
    )?,
  9. TResult duration(
    1. FormDurationField value
    )?,
  10. TResult color(
    1. FormColorField value
    )?,
  11. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(FormObjectField value)? object,
      TResult Function(FormMapField value)? map,
      TResult Function(FormStringField value)? string,
      TResult Function(FormBoolField value)? bool,
      TResult Function(FormDoubleField value)? double,
      TResult Function(FormIntegerField value)? int,
      TResult Function(FormNumField value)? num,
      TResult Function(FormDateTimeField value)? dateTime,
      TResult Function(FormDurationField value)? duration,
      TResult Function(FormColorField value)? color,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;