ParametersProvider class
This provider manages a miscellaneous of variables used in the app.
Its fields are
saveButtonPressed is true when the save button is pressed in the NewProfileScreen but one of the fields is not filled or incorrect. It is used to determine when the warning text must display and the fields must be highlighted in red.
hand takes the value 'L' or 'R' depending on the hand chosen by the user to attempt the test
codeid is the reference code
codeidController1 is the controller for the part of the reference code before the hyphen
codeidController2 is the controller for the part of the reference code after the hyphen
dataSent is a boolean that determines if the test data has been sent
dataSentCorrectly relates to if the test data has been sent successfully
isTrialTest is true when the current test is a trial test
- Inheritance
-
- Object
- ChangeNotifier
- ParametersProvider
Constructors
Properties
- codeid ↔ String?
-
getter/setter pair
- codeidController1 ↔ TextEditingController
-
getter/setter pair
- codeidController2 ↔ TextEditingController
-
getter/setter pair
- dataSent ↔ bool
-
getter/setter pair
- dataSentCorrectly ↔ bool
-
getter/setter pair
- hand ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isTrialTest ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveButtonPressed ↔ bool
-
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resetCodeidController1(
) → void - Resets the codeidController1 by instancing a new TextEditingController
-
resetCodeidController2(
) → void - Resets the codeidController2 by instancing a new TextEditingController
-
setCodeid(
String c) → void -
Assigns the argument
cto codeid and calls notifyListeners -
setDataSent(
bool d) → void -
Assigns the argument
dto dataSent and calls notifyListeners -
setDataSentCorrectly(
bool d) → void -
Assigns the argument
dto dataSentCorrectly and calls notifyListeners -
setHand(
String h) → void -
Assigns the argument
hto hand and calls notifyListeners -
setIsTrialTest(
bool b) → void -
Assigns the argument
bto isTrialTest and calls notifyListeners -
setSaveButtonPressed(
bool x) → void -
Assigns the argument
xto saveButtonPressed and calls notifyListeners -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited