ClassSession class Null safety

Constructors

ClassSession({required Course course, required String classroom, required DateTime startTime, required DateTime endTime})
const
ClassSession.empty()
Creates an empty class session.
factory
ClassSession.fromJson(dynamic json)
Creates a Course instance from a json object.
factory

Properties

classroom → String
final
course Course
final
endTime → DateTime
final
hashCode → int
The hash code for this object.
read-only, inherited
isEmpty → bool
read-only
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
startTime → DateTime
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
read-only, inherited

Methods

copyWith({Course? course, String? classroom, DateTime? startTime, DateTime? endTime}) ClassSession
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