BrushOptions class Null safety

Configuration options for Tool.brush.

Constructors

BrushOptions({List<BrushAction>? actions, List<BrushCanvasAction>? canvasActions, ColorPalette? colors, Color? defaultColor, double? defaultHardness, double? defaultSize, double? maximumHardness, double? maximumSize, double? minimumHardness, double? minimumSize})
Creates new BrushOptions.

Properties

actions List<BrushAction>?
Defines all allowed actions for the brush tool menu. Only buttons for allowed actions are visible and shown in the given order. [...]
final
canvasActions List<BrushCanvasAction>?
Defines all allowed actions for the brush tool that are displayed as overlay buttons on the canvas. Only buttons for allowed actions are visible. [...]
final
colors ColorPalette?
Defines all available colors that can be applied to the brush. The color pipette is always added.
final
defaultColor Color?
The default color.
final
defaultHardness double?
The default hardness factor of the brush. [...]
final
defaultSize double?
The default size of the brush. This value is measured in relation to the smaller side of the image that the user is editing. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
maximumHardness double?
The maximum hardness factor a brush can have. [...]
final
maximumSize double?
The maximum size that a brush can have. This value is measured in relation to the smaller side of the asset that the user is editing. [...]
final
minimumHardness double?
The minimum hardness factor a brush can have. [...]
final
minimumSize double?
The minimum size that a brush can have. This value is measured in relation to the smaller side of the asset that the user is editing. If the value is null the minimum brush size is set to the absolute size of a single pixel of the edited image. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited