HashiconPainter constructor

HashiconPainter({
  1. required String hash,
  2. Config? config,
})

Implementation

HashiconPainter({required String hash, Config? config}) {
  if (config != null) {
    _config = config;
  }

  final hasher = blake2s128.mac.by(_config.hashKey.codeUnits);
  _hash = hasher.string(hash).bytes;
}