InsetsHelper class

A helper class for common inset values.

The InsetsHelper class provides a set of constant double values for commonly used insets, padding, margins, or other spacing-related measurements. These constants can be used to maintain consistent spacing across a Flutter application, reducing the need for hardcoding values and promoting reusability.

Usage: Instead of hardcoding inset values throughout your Flutter code, use constants from InsetsHelper for more maintainable and consistent code. This can be especially useful for padding and margin insets, ensuring consistent spacing throughout your app.

Common Values:

  • i0 through i100: A set of predefined constants for common inset values.
  • Can be used for padding, margins, spacing, or any other layout-related purposes.

Example:

Padding(
  padding: EdgeInsets.all(InsetsHelper.i8),
  child: Text("Hello, World!"),
)
Annotations

Constructors

InsetsHelper.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

i0 → const double
i1 → const double
i2 → const double
i4 → const double
i5 → const double
i6 → const double
i7 → const double
i8 → const double
i10 → const double
i11 → const double
i12 → const double
i13 → const double
i14 → const double
i15 → const double
i16 → const double
i17 → const double
i18 → const double
i19 → const double
i20 → const double
i24 → const double
i25 → const double
i30 → const double
i32 → const double
i45 → const double
i48 → const double
i56 → const double
i80 → const double
i100 → const double