initState method
void
initState()
Initializes this feature state.
Called when the feature is first attached to a text field.
Implementation
void initState() {
_visibilityController = AnimationController(
vsync: tickerProvider,
duration: kDefaultDuration,
);
_visibilityController.value =
feature.visibility.canShow(_inputState!) ? 1 : 0;
_visibilityController.addListener(_updateAnimation);
for (var dependency in feature.visibility.getDependencies(_inputState!)) {
dependency.addListener(_updateVisibility);
}
}