EditorImage constructor
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.',
);