throwArgumentError<T extends VariantAttribute<IVariant>> function

ArgumentError throwArgumentError<T extends VariantAttribute<IVariant>>(
  1. T? other
)

Implementation

ArgumentError throwArgumentError<T extends VariantAttribute>(T? other) {
  throw ArgumentError.value(
    other.runtimeType,
    'other',
    'VariantAttribute must have the same variant',
  );
}