Describe the bug
The error is showing as mentioned in below:
../../.pub-cache/hosted/pub.dev/before_after-3.1.0/lib/src/before_after.dart:448:22: Error: The getter 'WidgetState' isn't defined for the class '_BeforeAfterState'.
'_BeforeAfterState' is from 'package:before_after/src/before_after.dart' ('../../.pub-cache/hosted/pub.dev/before_after-3.1.0/lib/src/before_after.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'WidgetState'.
if (!_enabled) WidgetState.disabled,
Describe the bug The error is showing as mentioned in below:
../../.pub-cache/hosted/pub.dev/before_after-3.1.0/lib/src/before_after.dart:448:22: Error: The getter 'WidgetState' isn't defined for the class '_BeforeAfterState'.