Movatterモバイル変換


[0]ホーム

URL:


menu
  1. flutter_hooks package
  2. documentation
  3. flutter_hooks.dart
  4. useSnapshotController function
useSnapshotController function

useSnapshotController function

SnapshotControlleruseSnapshotController({
  1. boolallowSnapshotting =false,
})

Creates and disposes aSnapshotController.

Note thatallowSnapshotting must be set totruein order for this controller to actually do anything.This is consistent withSnapshotController.new.

IfallowSnapshotting changes on subsequent calls touseSnapshotController,SnapshotController.allowSnapshotting will be called to update accordingly.

final controller = useSnapshotController(allowSnapshotting: true);// is equivalent tofinal controller = useSnapshotController();controller.allowSnapshotting = true;

See also:

Implementation

SnapshotController useSnapshotController({  bool allowSnapshotting = false,}) {  return use(    _SnapshotControllerHook(      allowSnapshotting: allowSnapshotting,    ),  );}
  1. flutter_hooks package
  2. documentation
  3. flutter_hooks
  4. useSnapshotController function
flutter_hooks library

[8]ページ先頭

©2009-2025 Movatter.jp