DartBlockSettings class

Immutable settings for the DartBlock editor.

Constructors

DartBlockSettings({bool canChange = true, bool canDelete = true, bool canReorder = true, List<DartBlockNativeFunctionCategory> allowedNativeFunctionCategories = DartBlockNativeFunctionCategory.values, List<DartBlockNativeFunctionType> allowedNativeFunctionTypes = DartBlockNativeFunctionType.values, DartBlockColors? colors, required DartBlockColorFamily colorFamily})
DartBlockSettings.fromBrightness({bool canChange = true, bool canDelete = true, bool canReorder = true, List<DartBlockNativeFunctionCategory> allowedNativeFunctionCategories = DartBlockNativeFunctionCategory.values, List<DartBlockNativeFunctionType> allowedNativeFunctionTypes = DartBlockNativeFunctionType.values, DartBlockColors? colors, required Brightness brightness})
Convenience factory that automatically resolves colors based on brightness.
factory

Properties

allowedNativeFunctionCategories → List<DartBlockNativeFunctionCategory>
final
allowedNativeFunctionTypes → List<DartBlockNativeFunctionType>
final
canChange → bool
final
canDelete → bool
final
canReorder → bool
final
colorFamily → DartBlockColorFamily
final
colors → DartBlockColors
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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