coerce<T> method

  1. @override
T coerce<T>(
  1. dynamic input
)
override

Implementation

@override
T coerce<T>(dynamic input) {
  try {
    return input as T;
  } catch (_) {
    return runtimeCast(input, reflectType(T)) as T;
  }
}