cast method

  1. @override
T cast(
  1. dynamic value
)
override

Casts the argument to this data type, otherwise throw an ArgumentError.

Implementation

@override
T cast(dynamic value) => value is T ? value : super.cast(value);