tryCast<T> function

T? tryCast<T>(
  1. dynamic object
)

Implementation

T? tryCast<T>(dynamic object) => object is T ? object : null;