createPositioned method
Creates a positioned related to the current direction and showed actions.
Implementation
Positioned createPositioned({
required Widget child,
double? extent,
double? position,
}) {
return Positioned(
left: directionIsXAxis ? (showActions ? position : null) : 0.0,
right: directionIsXAxis ? (showActions ? null : position) : 0.0,
top: directionIsXAxis ? 0.0 : (showActions ? position : null),
bottom: directionIsXAxis ? 0.0 : (showActions ? null : position),
width: directionIsXAxis ? extent : null,
height: directionIsXAxis ? null : extent,
child: child,
);
}