MediaQueryBuilder
class MediaQueryBuilder
Builds a list of MediaQuery conditions for a responsive breakpoint.
Each call appends one condition; build returns them in order. Conditions are combined implicitly (the breakpoint matches when all apply) unless nested under and/or/not.
Functions
Link copied to clipboard
Adds a MediaQuery.Logical and group of the conditions declared in block.
Link copied to clipboard
Adds a negated MediaQuery.Not of the single condition declared in block.
Link copied to clipboard
Adds a MediaQuery.Logical or group of the conditions declared in block.
Link copied to clipboard
Adds a width MediaQuery.WidthFeature: pass min for min-width (>=) or max for max-width (<=). Exactly one must be given, and it must use Length.Unit.Px.
fun width(value: Number, operator: <Error class: unknown class>, unit: <Error class: unknown class> = MediaQuery.WidthFeature.Unit.Px)
Adds a width MediaQuery.WidthFeature with an explicit operator (e.g. >, <=).