as<T> function

T? as<T>(
  1. dynamic value
)

Implementation

T? as<T>(value) => value is T ? value : null;