maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult all(
    1. BorderRadiusAll value
    )?,
  2. TResult circular(
    1. BorderRadiusCircular value
    )?,
  3. TResult vertical(
    1. BorderRadiusVertical value
    )?,
  4. TResult horizontal(
    1. BorderRadiusHorizontal value
    )?,
  5. TResult only(
    1. BorderRadiusOnly value
    )?,
  6. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(BorderRadiusAll value)? all,
      TResult Function(BorderRadiusCircular value)? circular,
      TResult Function(BorderRadiusVertical value)? vertical,
      TResult Function(BorderRadiusHorizontal value)? horizontal,
      TResult Function(BorderRadiusOnly value)? only,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;