maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. TResult $default(
    1. double horizontal,
    2. double vertical
    )?,
  2. {TResult adaptivePlatformDensity(
      )?,
    1. required TResult orElse(
        )}
      )
      @optionalTypeArgs, inherited

      Implementation

      @optionalTypeArgs
      TResult maybeWhen<TResult extends Object?>(
        TResult Function(double horizontal, double vertical)? $default, {
        TResult Function()? adaptivePlatformDensity,
        required TResult orElse(),
      }) =>
          throw _privateConstructorUsedError;