Interface for edge insets that can be resolved using density settings.
Implement this interface to create custom density-aware edge insets. Use DirectionalEdgeInsetsDensity for RTL-aware insets or EdgeInsetsDensity for fixed left/right insets.
- Inheritance
-
- Object
- EdgeInsetsGeometry
- DensityEdgeInsetsGeometry
- Implementers
- Available extensions
Properties
- collapsedSize → Size
-
The size that this EdgeInsets would occupy with an empty interior.
no setterinherited
- flipped → EdgeInsetsGeometry
-
An EdgeInsetsGeometry with top and bottom, left and right, and start and end flipped.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontal → double
-
The total offset in the horizontal direction.
no setterinherited
- isNonNegative → bool
-
Whether every dimension is non-negative.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vertical → double
-
The total offset in the vertical direction.
no setterinherited
Methods
-
add(
EdgeInsetsGeometry other) → EdgeInsetsGeometry -
Returns the sum of two EdgeInsetsGeometry objects.
inherited
-
along(
Axis axis) → double -
The total offset in the given direction.
inherited
-
clamp(
EdgeInsetsGeometry min, EdgeInsetsGeometry max) → EdgeInsetsGeometry -
Returns a new EdgeInsetsGeometry object with all values greater than
or equal to
min, and less than or equal tomax.inherited -
deflateSize(
Size size) → Size -
Returns a new size that is smaller than the given size by the amount of
inset in the horizontal and vertical directions.
inherited
-
inflateSize(
Size size) → Size -
Returns a new size that is bigger than the given size by the amount of
inset in the horizontal and vertical directions.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
optionallyResolve(
BuildContext context) → EdgeInsets -
Available on EdgeInsetsGeometry, provided by the EdgeInsetsExtension extension
Resolves to EdgeInsets, skipping resolution if already resolved. -
resolve(
TextDirection? direction) → EdgeInsets -
Convert this instance into an EdgeInsets, which uses literal coordinates
(i.e. the
leftcoordinate being explicitly a distance from the left, and therightcoordinate being explicitly a distance from the right).inherited -
resolveDensity(
double basePadding) → EdgeInsetsGeometry - Resolves the density multipliers to actual pixel values.
-
subtract(
EdgeInsetsGeometry other) → EdgeInsetsGeometry -
Returns the difference between two EdgeInsetsGeometry objects.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator %(
double other) → EdgeInsetsGeometry -
Computes the remainder in each dimension by the given factor.
inherited
-
operator *(
double other) → EdgeInsetsGeometry -
Scales the EdgeInsetsGeometry object in each dimension by the given factor.
inherited
-
operator /(
double other) → EdgeInsetsGeometry -
Divides the EdgeInsetsGeometry object in each dimension by the given factor.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → EdgeInsetsGeometry -
Returns the EdgeInsetsGeometry object with each dimension negated.
inherited
-
operator ~/(
double other) → EdgeInsetsGeometry -
Integer divides the EdgeInsetsGeometry object in each dimension by the given factor.
inherited