CNAlertResult<T> class

What a CNAlert reported back.

CNAlert.show resolves to null when the alert produced no answer at all — the plugin was not registered, the native side failed, or the fallback route was popped without pressing a button. Anything else resolves to one of these, even when the pressed action carried no CNAlertAction.value.

Annotations

Constructors

CNAlertResult({T? value, List<String> textFields = const <String>[]})
Creates a result.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textFields → List<String>
The contents of every CNAlertTextField, in the order they were declared.
final
value → T?
The CNAlertAction.value of the action that was pressed.
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