NativeSurface class
A native surface read as data: its kind, its question, the choices it offers, and the other text on it.
- Available extensions
Constructors
-
NativeSurface({required SurfaceKind kind, String? title, List<
SurfaceChoice> choices = const [], List<String> texts = const [], String? owner}) -
const
-
NativeSurface.fromJson(Map<
String, Object?> json) -
The surface toJson wrote, for rendering a reply's text.
factory
Properties
- affirmative → SurfaceChoice?
-
The choice that grants or confirms, by its label; null when none is clearly affirmative, so a prompt is never steered to a deny.
no setter
- answerStep → String?
-
The next step that answers this surface by text, naming every choice; null when it offers none.
no setter
-
choices
→ List<
SurfaceChoice> -
final
- hasContent → bool
-
Whether it says anything beyond its kind, so a screenshot adds nothing.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → SurfaceKind
-
final
- line → String
-
One line for a reply: kind, question, choices with their ids, or the text it shows.
no setter
- owner → String?
-
The window or app in front, when the platform names it.
final
- replyLine → String
-
Available on NativeSurface?, provided by the SurfaceReplyLine extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
texts
→ List<
String> -
final
- title → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited