DialogAction class
对话框操作按钮配置类
用于定义对话框按钮的样式和行为,可通过静态方法快速创建常用按钮
Constructors
- DialogAction({bool close = false, required String title, Color? color, dynamic action()?})
- 创建对话框按钮
Properties
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
Static Methods
-
accept(
{required String title, dynamic action()?, bool close = true}) → DialogAction - 创建绿色确认操作按钮
-
cancel(
{required String title, dynamic action()?, bool close = true}) → DialogAction - 创建灰色取消操作按钮
-
destroy(
{required String title, dynamic action()?, bool close = true}) → DialogAction - 创建红色销毁操作按钮