WidthPlatformBreakpoint class
A class that can be used to quickly generate Breakpoints that depend on the screen width and the platform.
- Inheritance
-
- Object
- Breakpoint
- WidthPlatformBreakpoint
Constructors
-
WidthPlatformBreakpoint({double? begin, double? end, Set<
TargetPlatform> ? platform}) -
Returns a const Breakpoint with the given constraints.
const
Properties
- begin → double?
-
The beginning width dp value. If left null then the Breakpoint will have
no lower bound.
final
- end → double?
-
The end width dp value. If left null then the Breakpoint will have no
upper bound.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
platform
→ Set<
TargetPlatform> ? -
A Set of TargetPlatforms that the Breakpoint will be active on. If
left null then it will be active on all platforms.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isActive(
BuildContext context) → bool -
A method that returns true based on conditions related to the context of
the screen such as MediaQuery.sizeOf(context).width.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited