builder method

Niku builder(
  1. Widget builder(
    1. Widget child
    )
)

Add custom widget

Example usage

Niku()
 .builder((child) {
     return AnimatedContainer(
         width: 200,
         height: 200,
         child: child
     );
 })
 .build()

Implementation

Niku builder(Widget Function(Widget child) builder) => Niku(
      builder(this._widget),
    );