hashKey method

String hashKey(
  1. Type type,
  2. String name, [
  3. Iterable<Object?> props = const []
])

Implementation

String hashKey(
  Type type,
  String name, [
  Iterable<Object?> props = const [],
]) {
  if (props.isEmpty) return "$name:$type";
  final code = props
      .map((e) {
        if (e == null) return '';
        return e.toString();
      })
      .where((e) => e.isNotEmpty)
      .join("_")
      .hashCode;
  return "$name:$type#$code";
}