SubjectListState class Null safety
State emitted by SubjectListBloc.
Contains the course/subject list and its request status (SubjectListRequestStatus).
Constructors
-
SubjectListState({SubjectListRequestStatus status = SubjectListRequestStatus.initial, List<
Course> courses = const <Course>[], String? errorMessage}) -
const
Properties
-
courses
→ List<
Course> -
final
- errorMessage → String?
-
Error message when the http request was unsuccessful
or something unexpected happend.
final
- hashCode → int
-
The hash code for this object.
read-only, inherited
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- status → SubjectListRequestStatus
-
Status of the http request.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.read-only, inherited
Methods
-
copyWith(
{SubjectListRequestStatus? status, List< Course> ? courses, String? errorMessage}) → SubjectListState -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited