fnToIntSafe function

dynamic fnToIntSafe(
  1. dynamic value
)

ToIntSafe(v): safely converts to an integer, returning 0 on failure

Implementation

dynamic fnToIntSafe(dynamic value) => int.tryParse(varToStr(value)) ?? 0;