MarginSpec class

Specs that applies to one margin.

Constructors

MarginSpec.fixedPixel(int? pixels)
Create MarginSpec with a fixed pixel size pixels.
factory
MarginSpec.fromPercent({int? minPercent, int? maxPercent})
Create MarginSpec that specifies min/max percentage.
factory
MarginSpec.fromPixel({int? minPixel, int? maxPixel})
Create MarginSpec that specifies min/max pixels.
factory

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

getMaxPixels(int totalPixels) → int
Get the max pixels, given the totalPixels.
getMinPixels(int totalPixels) → int
Get the min pixels, given the totalPixels.
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

defaultSpec → const MarginSpec
MarginSpec that has max of 50 percent.