SeatFilter class
Kit-ignorant filter that dims and disables non-matching seats.
The filter never inspects the generic payload T — it only reads
SeatElement.category (id) and SeatElement.status, both non-generic.
Pass allowedCategoryIds to show only certain seat types. Pass onlyAvailable to hide non-bookable seats. Non-matching seats are dimmed and excluded from hit-testing.
- Annotations
Constructors
-
SeatFilter({Set<
String> ? allowedCategoryIds, bool onlyAvailable = false}) -
Creates a SeatFilter. With no arguments, every seat passes.
const
Properties
-
allowedCategoryIds
→ Set<
String> ? -
When non-null, only seats whose SeatCategory.id is in this set pass.
A seat with no category always fails when this is non-null.
Passing
nulldisables category filtering (all categories pass).final - hashCode → int
-
The hash code for this object.
no setteroverride
- onlyAvailable → bool
-
When true, only SeatStatus.available seats pass.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
passes(
SeatElement seat) → bool -
Returns true if
seatshould be fully opaque and interactive. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override