Add dispose to restoration example (#63497)

This commit is contained in:
Michael Goderbauer
2020-08-11 10:04:33 -07:00
committed by GitHub
parent c13b354a02
commit 7dfb997e41

View File

@@ -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(