DialogAction class

Constructors

DialogAction.new({bool close = false, required String title, Color? color, dynamic action()?})

对话框按钮 >>>

Properties

action → dynamic Function()?
final
close bool
final
color Color?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
final

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

删除按钮 >>>