mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult unknown(
    1. UnknownTokenValue value
    )?,
  2. TResult dimension(
    1. SizeTokenValue value
    )?,
  3. TResult color(
    1. ColorTokenValue value
    )?,
  4. TResult radius(
    1. RadiusTokenValue value
    )?,
  5. TResult spacing(
    1. SpacingTokenValue value
    )?,
  6. TResult fontStyle(
    1. FontStyleTokenValue value
    )?,
  7. TResult icon(
    1. IconTokenValue value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult Function(UnknownTokenValue value)? unknown,
  TResult Function(SizeTokenValue value)? dimension,
  TResult Function(ColorTokenValue value)? color,
  TResult Function(RadiusTokenValue value)? radius,
  TResult Function(SpacingTokenValue value)? spacing,
  TResult Function(FontStyleTokenValue value)? fontStyle,
  TResult Function(IconTokenValue value)? icon,
}) =>
    throw _privateConstructorUsedError;