cast<T> function

T? cast<T>(
  1. Object? x
)

Implementation

T? cast<T>(Object? x) => x is T ? x : null;