DrishyaEditingController class

Drishya editing controller

Inheritance

Constructors

DrishyaEditingController()
Drishya editing controller

Properties

backgroundNotifier ValueNotifier<EditorBackground>
Current background notifier
no setter
colorNotifier ValueNotifier<Color>
Current color notifier
no setter
currentAsset ValueNotifier<StickerAsset?>
no setter
currentAssetState ValueNotifier<DraggableResizableState?>
no setter
currentBackground EditorBackground
Current background
no setter
currentColor Color
Current color
no setter
editorKey GlobalKey<State<StatefulWidget>>
Editor key
no setter
focusNode FocusNode
Editor text field focus node
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setting EditorSetting
Editor settings
no setter
stickerController StickerController
Sticker controller
no setter
textColor Color
Computed text color as per the background
no setter
textController TextEditingController
Editor text field controller
no setter
value EditorValue
The current value stored in this notifier.
getter/setter pairinherited-getteroverride-setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
changeBackground() → void
Change editor gradient background
clear() → void
Clear editor
completeEditing({ValueSetter<Exception>? onException}) Future<DrishyaEntity?>
Complete editing and generate image
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
generateForegroundColor(Color background) Color
Generate foreground color from background color
init({EditorSetting? setting}) → void
Initialize controller setting
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited
updateValue({bool? keyboardVisible, bool? fillTextfield, int? maxLines, TextAlign? textAlign, bool? hasFocus, bool? hasStickers, bool? isEditing, bool? isStickerPickerOpen, bool? isColorPickerOpen}) → void
Update editor value

Operators

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