Integer.fromMap constructor

Integer.fromMap(
  1. Map<String, int>? m
)

Construct an Integer from a Map: { 'i': integer value }

If the map contents are not recognized, Integer.zero is returned.

Implementation

factory Integer.fromMap(Map<String, int>? m) {
  if (m?['i'] is int) return Integer(m?['i'] as int);
  return Integer.zero;
}