positioned method

Niku positioned({
  1. double? top,
  2. double? left,
  3. double? bottom,
  4. double? right,
})

Add Positioned to widget

Equivalent to

Positioned(
  top: top,
  left: left,
  bottom: bottom,
  right: right
)

Implementation

Niku positioned({double? top, double? left, double? bottom, double? right}) {
  _widget = Positioned(
    top: top,
    left: left,
    bottom: bottom,
    right: right,
    child: _widget,
  );

  return this;
}