widget property

  1. @override
T get widget
override

You need to be able access the widget.

Implementation

@override
// ignore: avoid_as
T get widget => parentState?.widget as T;