whenOrNull<TResult extends Object?> method Null safety

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

    Implementation

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