register static method

dynamic register(
  1. String namespace,
  2. Map<String, IconData> mapping
)

register icon mapping with namespace

Implementation

static register(String namespace, Map<String, IconData> mapping) {
  if (_registry.containsKey(namespace)) {
    throw FlutterError(
        "conflict error: the mapping with namespace $namespace is already registered");
  } else {
    _registry[namespace] = mapping;
  }
}