Image constructor

Image({
  1. String? hash,
  2. Future<Uint8List> getBytesAsync()?,
  3. Future getSizeAsync()?,
})

Implementation

factory Image({
  _i2.String? hash,
  _i2.Future<_i6.Uint8List> Function()? getBytesAsync,
  _i2.Future<_i2.dynamic> Function()? getSizeAsync,
}) =>
    Image._(
      hash: hash,
      getBytesAsync:
          getBytesAsync == null ? null : _i5.allowInterop(getBytesAsync),
      getSizeAsync:
          getSizeAsync == null ? null : _i5.allowInterop(getSizeAsync),
    );