build abstract method

Widget build(
  1. BuildContext context,
  2. T state
)

Describes this instance's UI.

state is the controller belonging to this instance, created once by createState and passed in by the owning element. Closures created here capture it, so reading it from a builder: or a callback stays correct.

Implementation

Widget build(BuildContext context, T state);