Bamboo<T> class

Return a responsive value based on the type without context

Responsive(mobile: 20)

Constructors

Bamboo({required T mobile, T? tablet, T? desktop, T? large, required BuildContext context, Unit unit = Unit.p})

Properties

adaptive → T
Return a responsive value based on the type
no setter
context BuildContext
final
desktop → T?
final
hashCode int
The hash code for this object.
no setterinherited
large → T?
final
mobile → T
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tablet → T?
final
unit Unit
final

Methods

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

Static Methods

number<num>({required BuildContext context, required num mobile, num? tablet, num? desktop, num? large, Unit unit = Unit.px}) → num
Adaptively provides the number based on type with proper unit assign to it By default the Unit objects is just pixel Unit available API are Unit.p, Unit.px, Unit.vh, Unit.vmax, Unit.vmin, Unit.vw
orientation<T>({required BuildContext context, required dynamic portrait, required dynamic landscape}) → T
Allow us to set a property based on the orientation
value<T>({required BuildContext context, required T mobile, T? tablet, T? desktop, T? large}) → T
Adatively provides the assign type with the correct element based on the current breakpoint {@tool snippet}