DetailsState class
Represents the state for the test details view managed by DetailsCubit.
DetailsState holds all relevant data for rendering and interacting with
the test details screen, including the test model, interpretations, print/share
status, UI controls (such as grid zoom and offset), and user selections.
It supports value comparison via Equatable for efficient state updates.
Use copyWith to create updated copies of the state with modified fields.
Example usage:
final newState = state.copyWith(isLoadingPrint: true);
- Inheritance
- Implementers
Constructors
- DetailsState({required Test test, Interpretations2? interpretations, Interpretations2? interpretations2, PrintStatus printStatus = PrintStatus.preProcessing, int gridPreMin = 3, int mOffset = 0, bool isLoadingPrint = false, PrintAction? action, String? radioValue, String? movements})
-
const
Properties
- action → PrintAction?
-
final
- gridPreMin → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interpretations → Interpretations2?
-
final
- interpretations2 → Interpretations2?
-
final
- isLoadingPrint → bool
-
final
-
final
- mOffset → int
-
final
- movements → String?
-
final
- printStatus → PrintStatus
-
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- radioValue → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, the toString method will be overridden to output this instance's props.no setterinherited - test → Test
-
final
Methods
-
copyWith(
{Test? test, Interpretations2? interpretations, Interpretations2? interpretations2, PrintStatus? printStatus, int? gridPreMin, int? mOffset, bool? isLoadingPrint, PrintAction? action, String? radioValue, String? movements}) → DetailsState -
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