Skip to content

Commit

Permalink
_ResetNotifier should communicate creation in constructor. (#133716)
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c authored Aug 31, 2023
1 parent a14989b commit 54402ae
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 54402ae

Please sign in to comment.