as<T> method

T? as<T>()

Implementation

T? as<T>() {
  if (rawValue is! T) return null;
  return (rawValue as T);
}