FocusScopeNodeRaiiExt extension

Extension for managing FocusScopeNode lifecycle.

Example:

class MyWidgetState extends State<MyWidget> with RaiiStateMixin {
  final focusScope = FocusScopeNode()
    .withLifecycle(this, debugLabel: 'FocusScope');
}
on

Methods

withLifecycle(RaiiLifecycleAware lifecycleAware, {String? debugLabel}) FocusScopeNode

Available on FocusScopeNode, provided by the FocusScopeNodeRaiiExt extension

Attaches this focus scope node to a RaiiLifecycleAware object for automatic disposal.