SurfacePadding enum

🔲 SurfacePadding

Defines how passed Surface.padding is applied.

  • SurfacePadding.PAD_CHILD gives entire passed padding value to the child
  • SurfacePadding.PAD_SURFACE applies entire passed padding value to a Padding that surrounds the inner ClipPath where Surface.child eventually resides
  • SurfacePadding.SPLIT gives half the padding value to the Surface.innerMaterial and other half to Surface.child

Constants

PAD_CHILD → const SurfacePadding

Give entire padding value to the child

const SurfacePadding(0)
PAD_SURFACE → const SurfacePadding

Apply entire padding value to a Padding that surrounds the inner ClipPath where Surface.child eventually resides

const SurfacePadding(1)
SPLIT → const SurfacePadding

Give half the padding value to the Surface.innerMaterial and other half to Surface.child

const SurfacePadding(2)
values → const List<SurfacePadding>

A constant List of the values in this enum, in order of their declaration.

const List<SurfacePadding>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

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