Bounds class

Implementers
Annotations
  • @freezed

Constructors

Bounds.fixed({@Default(0) double left, @Default(0) double top, @Default(0) double width, @Default(0) double height})
const
factory
Bounds.intrinsic({@Default(0) double left, @Default(0) double top, @Default(0) double width, @Default(0) double height, required IntrinsicBoundsDelegate delegate})
const
factory

Properties

center Offset
no setter
copyWith → $BoundsCopyWith<Bounds>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height double
no setterinherited
isFixed bool
no setter
isIntrinsic bool
no setter
left double
no setterinherited
position Offset
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
no setter
top double
no setterinherited
width double
no setterinherited

Methods

contains(Offset offset) bool
map<TResult extends Object?>({required TResult fixed(FixedBounds value), required TResult intrinsic(IntrinsicBounds value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? fixed(FixedBounds value)?, TResult? intrinsic(IntrinsicBounds value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult fixed(FixedBounds value)?, TResult intrinsic(IntrinsicBounds value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult fixed(double left, double top, double width, double height)?, TResult intrinsic(double left, double top, double width, double height, IntrinsicBoundsDelegate delegate)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRect() Rect
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult fixed(double left, double top, double width, double height), required TResult intrinsic(double left, double top, double width, double height, IntrinsicBoundsDelegate delegate)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? fixed(double left, double top, double width, double height)?, TResult? intrinsic(double left, double top, double width, double height, IntrinsicBoundsDelegate delegate)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited