EditorImage constructor

EditorImage({
  1. Uint8List? byteArray,
  2. File? file,
  3. String? networkUrl,
  4. String? assetPath,
})

Creates an instance of the EditorImage class with the specified properties.

At least one of byteArray, file, networkUrl, or assetPath must not be null.

Implementation

EditorImage({
  this.byteArray,
  this.file,
  this.networkUrl,
  this.assetPath,
}) : assert(
        byteArray != null ||
            file != null ||
            networkUrl != null ||
            assetPath != null,
        'At least one of bytes, file, networkUrl, or assetPath must not '
        'be null.',
      );