castOrNull<T> method

T? castOrNull<T>()

Implementation

T? castOrNull<T>() => this is T ? this : null;