CourseTableGridMetrics class
Period row heights for one course-table snapshot.
The interactive grid and the launcher widget export pick their own rowHeight, but share the noon shrinking rule and the span arithmetic so both surfaces place noon-crossing courses the same way.
Constructors
-
CourseTableGridMetrics({required List<
Period> visiblePeriods, required bool hasNoonCourse, required double rowHeight}) -
const
Properties
- gridHeight → double
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNoonCourse → bool
-
final
- noonRowHeight → double
-
Noon shrinks to a third of a row while no course occupies it.
no setter
- rowHeight → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
visiblePeriods
→ List<
Period> -
final
Methods
-
courseCellHeight(
int startIndex, CourseTableCellData cell) → double - Height of a course cell, adding the noon row that a noon-crossing course covers without counting it in its span. That row is full height when another day has a noon course.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
periodHeight(
Period period) → double -
periodSpanHeight(
int startIndex, int span) → double -
periodTopOffset(
int periodIndex) → double -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited