widget property
You need to be able access the widget.
Implementation
// if parentState is null then AppStatefulWidget was likely not used.
@override
T get widget => (parentState?.widget ?? super.widget) as T;
You need to be able access the widget.
// if parentState is null then AppStatefulWidget was likely not used.
@override
T get widget => (parentState?.widget ?? super.widget) as T;