fetchMappingByNamespace static method

Map<String, IconData> fetchMappingByNamespace(
  1. String namespace
)

fetches the icons mapping by namespace

Implementation

static Map<String, IconData> fetchMappingByNamespace(String namespace) {
  try {
    return _registry[namespace]!;
  } catch (e) {
    throw FlutterError(
        "namespace not registered error: remote icon failed to find any icon mapping with the provided namespace '$namespace'");
  }
}