maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. {TResult intrinsic(
    1. double? flex
    )?,
  2. TResult fixed(
    1. double value
    )?,
  3. TResult fraction(
    1. double value
    )?,
  4. TResult flex(
    1. double value
    )?,
  5. TResult max(
    1. TableColumnWidth a,
    2. TableColumnWidth b
    )?,
  6. TResult min(
    1. TableColumnWidth a,
    2. TableColumnWidth b
    )?,
  7. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function(double? flex)? intrinsic,
      TResult Function(double value)? fixed,
      TResult Function(double value)? fraction,
      TResult Function(double value)? flex,
      TResult Function(TableColumnWidth a, TableColumnWidth b)? max,
      TResult Function(TableColumnWidth a, TableColumnWidth b)? min,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;