tryCast<T> method

T? tryCast<T>(
  1. String key
)

Implementation

T? tryCast<T>(String key) {
  try {
    return asCast<T>(key);
  } catch (e) {
    return null;
  }
}