ImageEditorConfig class
图片编辑器的配置入口
Constructors
- ImageEditorConfig({bool enableCrop = true, bool enableRotate = true, bool enableText = true, CropOptionConfig cropOptions = const CropOptionConfig(), RotateOptionConfig rotateOptions = const RotateOptionConfig(), TopToolbarConfig topToolbar = const TopToolbarConfig(), ImageCompressionConfig? compression, LockToTool? lockToTool})
-
图片编辑器配置
const
Properties
- compression → ImageCompressionConfig?
-
导出图片时的压缩配置
final
- cropOptions → CropOptionConfig
-
裁剪菜单中各选项的启用状态
final
- enableCrop → bool
-
是否启用裁剪工具
final
- enableRotate → bool
-
是否启用旋转工具
final
- enableText → bool
-
是否启用文本工具
final
- hasEnabledCropOption → bool
-
是否至少启用了一个裁剪选项
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- lockToTool → LockToTool?
-
锁定工具。如果设置,会忽略其他工具的配置,直接进入该工具模式,且无法切换其他工具。
final
- rotateOptions → RotateOptionConfig
-
旋转菜单中各选项的启用状态
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topToolbar → TopToolbarConfig
-
顶部工具栏的文案与颜色配置
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited