maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. TResult $default(
    1. int value
    )?,
  2. {TResult fromARGB(
    1. int a,
    2. int r,
    3. int g,
    4. int b
    )?,
  3. TResult fromRGBO(
    1. int r,
    2. int g,
    3. int b,
    4. double opacity
    )?,
  4. TResult alphaBlend(
    1. Color foreground,
    2. Color background
    )?,
  5. TResult material(
    1. int value,
    2. Map<int, Color> swatch
    )?,
  6. TResult materialAccentColor(
    1. int value,
    2. Map<int, Color> swatch
    )?,
  7. TResult primary(
      )?,
    1. TResult onPrimary(
        )?,
      1. TResult primaryContainer(
          )?,
        1. TResult onPrimaryContainer(
            )?,
          1. TResult secondary(
              )?,
            1. TResult onSecondary(
                )?,
              1. TResult secondaryContainer(
                  )?,
                1. TResult onSecondaryContainer(
                    )?,
                  1. TResult tertiary(
                      )?,
                    1. TResult onTertiary(
                        )?,
                      1. TResult tertiaryContainer(
                          )?,
                        1. TResult onTertiaryContainer(
                            )?,
                          1. TResult error(
                              )?,
                            1. TResult onError(
                                )?,
                              1. TResult errorContainer(
                                  )?,
                                1. TResult onErrorContainer(
                                    )?,
                                  1. TResult outline(
                                      )?,
                                    1. TResult outlineVariant(
                                        )?,
                                      1. TResult background(
                                          )?,
                                        1. TResult onBackground(
                                            )?,
                                          1. TResult surface(
                                              )?,
                                            1. TResult onSurface(
                                                )?,
                                              1. TResult surfaceVariant(
                                                  )?,
                                                1. TResult onSurfaceVariant(
                                                    )?,
                                                  1. TResult inverseSurface(
                                                      )?,
                                                    1. TResult onInverseSurface(
                                                        )?,
                                                      1. TResult inversePrimary(
                                                          )?,
                                                        1. TResult shadow(
                                                            )?,
                                                          1. TResult scrim(
                                                              )?,
                                                            1. TResult surfaceTint(
                                                                )?,
                                                              1. required TResult orElse(
                                                                  )}
                                                                )
                                                                @optionalTypeArgs, inherited

                                                                Implementation

                                                                @optionalTypeArgs
                                                                TResult maybeWhen<TResult extends Object?>(
                                                                  TResult Function(int value)? $default, {
                                                                  TResult Function(int a, int r, int g, int b)? fromARGB,
                                                                  TResult Function(int r, int g, int b, double opacity)? fromRGBO,
                                                                  TResult Function(Color foreground, Color background)? alphaBlend,
                                                                  TResult Function(int value, Map<int, Color> swatch)? material,
                                                                  TResult Function(int value, Map<int, Color> swatch)? materialAccentColor,
                                                                  TResult Function()? primary,
                                                                  TResult Function()? onPrimary,
                                                                  TResult Function()? primaryContainer,
                                                                  TResult Function()? onPrimaryContainer,
                                                                  TResult Function()? secondary,
                                                                  TResult Function()? onSecondary,
                                                                  TResult Function()? secondaryContainer,
                                                                  TResult Function()? onSecondaryContainer,
                                                                  TResult Function()? tertiary,
                                                                  TResult Function()? onTertiary,
                                                                  TResult Function()? tertiaryContainer,
                                                                  TResult Function()? onTertiaryContainer,
                                                                  TResult Function()? error,
                                                                  TResult Function()? onError,
                                                                  TResult Function()? errorContainer,
                                                                  TResult Function()? onErrorContainer,
                                                                  TResult Function()? outline,
                                                                  TResult Function()? outlineVariant,
                                                                  TResult Function()? background,
                                                                  TResult Function()? onBackground,
                                                                  TResult Function()? surface,
                                                                  TResult Function()? onSurface,
                                                                  TResult Function()? surfaceVariant,
                                                                  TResult Function()? onSurfaceVariant,
                                                                  TResult Function()? inverseSurface,
                                                                  TResult Function()? onInverseSurface,
                                                                  TResult Function()? inversePrimary,
                                                                  TResult Function()? shadow,
                                                                  TResult Function()? scrim,
                                                                  TResult Function()? surfaceTint,
                                                                  required TResult orElse(),
                                                                }) =>
                                                                    throw _privateConstructorUsedError;