maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. TResult $default(
    1. _SizeAttribute value
    )?,
  2. {TResult height(
    1. HeightAttribute value
    )?,
  3. TResult maxHeight(
    1. MaxHeightAttribute value
    )?,
  4. TResult minHeight(
    1. MinHeightAttribute value
    )?,
  5. TResult width(
    1. WidthAttribute value
    )?,
  6. TResult maxWidth(
    1. MaxWidthAttribute value
    )?,
  7. TResult minWidth(
    1. MinWidthAttribute value
    )?,
  8. TResult gap(
    1. GapAttribute value
    )?,
  9. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>(
      TResult Function(_SizeAttribute value)? $default, {
      TResult Function(HeightAttribute value)? height,
      TResult Function(MaxHeightAttribute value)? maxHeight,
      TResult Function(MinHeightAttribute value)? minHeight,
      TResult Function(WidthAttribute value)? width,
      TResult Function(MaxWidthAttribute value)? maxWidth,
      TResult Function(MinWidthAttribute value)? minWidth,
      TResult Function(GapAttribute value)? gap,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;