ImageF.bytes constructor

ImageF.bytes(
  1. Uint8List bytes
)

Implementation

factory ImageF.bytes(Uint8List bytes) {
  final name = FileF.hash(bytes);
  final file = _map[name] ??= ImageF.fresh(name);
  file.bytes = bytes;
  return file;
}