IconAction<T, S extends BaseReadyListState<T>, TController extends ReadyListController<T, S>> class

Inheritance

Constructors

IconAction({required DataTableActionCallBack<T, S, TController> action, required DataTableActionProperty<T, IconData> icon, required DataTableActionProperty<T, Color> color, required DataTableActionPropertyCtx<T, String> toolTip, required DataTableActionProperty<T, bool> visible, DataTableActionProperty<T, bool> enabled = _defEnabled})
IconAction.activate({required DataTableActionCallBack<T, S, TController> action, DataTableActionProperty<T, bool>? enabled, DataTableActionProperty<T, IconData>? icon, DataTableActionProperty<T, Color>? color, DataTableActionPropertyCtx<T, String>? toolTip, DataTableActionProperty<T, bool>? visible})
action for unlock
factory
IconAction.deactivate({required DataTableActionCallBack<T, S, TController> action, DataTableActionProperty<T, bool>? enabled, DataTableActionProperty<T, IconData>? icon, DataTableActionProperty<T, Color>? color, DataTableActionPropertyCtx<T, String>? toolTip, DataTableActionProperty<T, bool>? visible})
action for lock
factory
IconAction.delete({required DataTableActionCallBack<T, S, TController> action, DataTableActionProperty<T, bool>? enabled, DataTableActionProperty<T, IconData>? icon, DataTableActionProperty<T, Color>? color, DataTableActionPropertyCtx<T, String>? toolTip, DataTableActionProperty<T, bool>? visible})
action for delete
factory
IconAction.edit({required DataTableActionCallBack<T, S, TController> action, DataTableActionProperty<T, bool>? enabled, DataTableActionProperty<T, IconData>? icon, DataTableActionProperty<T, Color>? color, DataTableActionPropertyCtx<T, String>? toolTip, DataTableActionProperty<T, bool>? visible})
action for edit
factory
IconAction.toggle({required DataTableActionCallBack<T, S, TController> action, DataTableActionProperty<T, bool>? enabled, required DataTableActionProperty<T, bool> isActive, DataTableActionProperty<T, IconData>? icon, DataTableActionProperty<T, Color>? color, DataTableActionPropertyCtx<T, String>? toolTip, DataTableActionProperty<T, bool>? visible})
action for toggle
factory
IconAction.view({required DataTableActionCallBack<T, S, TController> action, DataTableActionProperty<T, bool>? enabled, DataTableActionProperty<T, IconData>? icon, DataTableActionProperty<T, Color>? color, DataTableActionPropertyCtx<T, String>? toolTip, DataTableActionProperty<T, bool>? visible})
action for view
factory

Properties

action DataTableActionCallBack<T, S, TController>
action callback
final
color DataTableActionProperty<T, Color>
color of icon
final
enabled DataTableActionProperty<T, bool>
whether if action enabled or not
final
hashCode int
The hash code for this object.
no setterinherited
icon DataTableActionProperty<T, IconData>
icon of the action
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolTip DataTableActionPropertyCtx<T, String>
action toolTip
final
visible DataTableActionProperty<T, bool>
whether if action enabled or not
final

Methods

build(BuildContext context, TController controller, T item, int index, bool menuBar) Widget
override
copyWith({DataTableActionCallBack<T, S, TController>? action, DataTableActionProperty<T, IconData>? icon, DataTableActionProperty<T, Color>? color, DataTableActionPropertyCtx<T, String>? toolTip, DataTableActionProperty<T, bool>? enabled, DataTableActionProperty<T, bool>? visible}) IconAction<T, S, TController>
copy action properties and return new instate
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