safeCast method

T? safeCast(
  1. Object o
)

Implementation

T? safeCast(Object o) => o is T ? o : null;