cast<T> static method
T
cast<T>(
- dynamic x, {
- required T fallback,
Implementation
static T cast<T>(dynamic x, {required T fallback}) => x is T ? x : fallback;