safeCast<T> function
T?
safeCast<T>(
- dynamic value
Implementation
T? safeCast<T>(dynamic value) => value is T ? value : null;
T? safeCast<T>(dynamic value) => value is T ? value : null;