widget property

Widget widget

Returns the game widget. Put this in your structure to start rendering and updating the game. You can add it directly to the runApp method or inside your widget structure (if you use vanilla screens and widgets).

Implementation

Widget get widget => builder.build(this);