TransformationControllerRaiiExt extension

Extension for managing TransformationController lifecycle.

Example:

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

Methods

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

Available on TransformationController, provided by the TransformationControllerRaiiExt extension

Attaches this controller to a RaiiLifecycleAware object for automatic disposal.