PaintingEditor.asset constructor

PaintingEditor.asset(
  1. String assetPath, {
  2. Key? key,
  3. required PaintEditorInitConfigs initConfigs,
})

Constructs a PaintingEditor widget with an image loaded from an asset.

Implementation

factory PaintingEditor.asset(
  String assetPath, {
  Key? key,
  required PaintEditorInitConfigs initConfigs,
}) {
  return PaintingEditor._(
    key: key,
    editorImage: EditorImage(assetPath: assetPath),
    initConfigs: initConfigs,
  );
}