Unverified Commit 54402ae3 authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

_ResetNotifier should communicate creation in constructor. (#133716)

parent a14989b3
......@@ -1056,6 +1056,11 @@ class DraggableScrollableActuator extends StatelessWidget {
/// A [ChangeNotifier] to use with [InheritedResetNotifier] to notify
/// descendants that they should reset to initial state.
class _ResetNotifier extends ChangeNotifier {
_ResetNotifier() {
if (kFlutterMemoryAllocationsEnabled) {
maybeDispatchObjectCreation();
}
}
/// Whether someone called [sendReset] or not.
///
/// This flag should be reset after checking it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment