orNull<T> function

T? orNull<T>(
  1. dynamic obj
)

Implementation

T? orNull<T>(dynamic obj) => obj is T ? obj : null;