Pinned constructor
Pinned({})
Constructs a Pinned instance by building horizontal & vertical Pin instances
from semantic parameters. For example, providing left
& width
parameters would
result in a hPin
having start
and size
values.
Implementation
Pinned({
Key? key,
double? left,
double? leftFraction,
double? right,
double? rightFraction,
double? width,
double? horizontalMiddle,
double? top,
double? topFraction,
double? bottom,
double? bottomFraction,
double? height,
double? verticalMiddle,
required Widget child,
}) : this.fromPins(
Pin(
start: left,
startFraction: leftFraction,
end: right,
endFraction: rightFraction,
size: width,
middle: horizontalMiddle,
),
Pin(
start: top,
startFraction: topFraction,
end: bottom,
endFraction: bottomFraction,
size: height,
middle: verticalMiddle,
),
child: child,
key: key);