useSnapshotController function

  1. @defineHook
SnapshotController useSnapshotController({
  1. bool allowSnapshotting = false,
})

Implementation

@defineHook
SnapshotController useSnapshotController({bool allowSnapshotting = false}) {
  return useChangeNotifier(
      () => SnapshotController(allowSnapshotting: allowSnapshotting));
}