Add dispose to restoration example (#63497)
This commit is contained in:
committed by
GitHub
parent
c13b354a02
commit
7dfb997e41
@@ -664,6 +664,12 @@ abstract class RestorableProperty<T> extends ChangeNotifier {
|
||||
/// }
|
||||
///
|
||||
/// @override
|
||||
/// void dispose() {
|
||||
/// _counter.dispose();
|
||||
/// super.dispose();
|
||||
/// }
|
||||
///
|
||||
/// @override
|
||||
/// Widget build(BuildContext context) {
|
||||
/// return Scaffold(
|
||||
/// appBar: AppBar(
|
||||
|
||||
Reference in New Issue
Block a user