_ResetNotifier should communicate creation in constructor. (#133716)
This commit is contained in:
parent
a14989b3bf
commit
54402ae375
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user