toValue<T> static method
T?
toValue<T>(
- dynamic value
Converts a value to the specified type.
Example: (42) -> 42
Implementation
static T? toValue<T>(dynamic value) => value is T ? value : null;