shortHash function Null safety

String shortHash(
  1. Object? object
)

Returns a 5 character long hexadecimal string generated from Object.hashCode's 20 least-significant bits.

Implementation

String shortHash(Object? object) {
  return object.hashCode.toUnsigned(20).toRadixString(16).padLeft(5, '0');
}