ifIs<T> method

T? ifIs<T>()

Implementation

T? ifIs<T>() {
  if (this is T) return this as T;
  return null;
}