FocusNodeRaiiExt extension
Extension for managing FocusNode lifecycle.
Example:
class MyWidgetState extends State<MyWidget> with RaiiStateMixin {
late final focusNode = FocusNode()
.withLifecycle(this, debugLabel: 'FocusNode');
}
- on
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → FocusNode -
Available on FocusNode, provided by the FocusNodeRaiiExt extension
Attaches this focus node to a RaiiLifecycleAware object for automatic disposal.