fnToIntSafe function
dynamic
fnToIntSafe(
- dynamic value
ToIntSafe(v): safely converts to an integer, returning 0 on failure
Implementation
dynamic fnToIntSafe(dynamic value) => int.tryParse(varToStr(value)) ?? 0;