BlurEditor.asset constructor

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

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

Implementation

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