idOf method

  1. @override
String? idOf(
  1. Type type
)

Get the id of a type

Implementation

@override
String? idOf(Type type) {
  return _mappers[type]?.id ??
      _types.entries
          .where((e) => e.value(<T>() => T == type) as bool)
          .map((e) => e.key)
          .firstOrNull;
}