Task class abstract
Abstract definition of survey task
If you want to create a custom task:
- Inherit from Task
- If you want to use JSON override fromJson and add your type
- Implementers
Constructors
-
Task({TaskIdentifier? id, List<
Step> steps = const [], Step? initalStep}) -
Task.fromJson(Map<
String, dynamic> json) -
Creates a task from a Map. The task needs to have a type definition of
either 'ordered' - OrderedTask or 'navigable' - NavigableTask.
If not it will throw a TaskNotDefinedException.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ TaskIdentifier
-
latefinal
- initalStep → Step?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
steps
→ List<
Step> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override