style method

Widget style(
  1. NikuTextField instance
)

Apply existing NikuTextField's property to current style and build

Example usage:

final border = NikuTextField("")
  .border(
    OutlineInputBorder(
      borderSide: BorderSide(
        width: 2
      )
    )
  )
  .focusedBorder(OutlineInputBorder(
    borderSide: BorderSide(
      color: Colors.blue,
      width: 2)
    )
  );

return (
  NikuTextField("Bordered Filled")
    .style(border)
);

Implementation

Widget style(NikuTextField instance) => this.apply(instance).build();