DialogResult<T> class

对话框返回的数据。

@param status 状态,即确认取消状态。true为成功状态,即确定按钮的关闭等。 @param code 状态码,不同操作返回的状态码定义。 @param msg 返回的信息,一般日志等。 @param data 返回的数据。

Constructors

DialogResult({required bool status, String? msg, required int code, T? data})
const
DialogResult.cancel({String? msg, T? data})
factory
DialogResult.success({String? msg, T? data})
factory

Properties

code int
final
data → T?
final
hashCode int
The hash code for this object.
no setterinherited
msg String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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