Skip to content

Commit 846bc3a

Browse files
committed
chore: autoformat
1 parent cf06c67 commit 846bc3a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/flutter_hooks/lib/src/hooks.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ part 'transformation_controller.dart';
4141
part 'tree_sliver_controller.dart';
4242
part 'widget_states_controller.dart';
4343
part 'widgets_binding_observer.dart';
44-
part 'snapshot_controller.dart';
44+
part 'snapshot_controller.dart';

packages/flutter_hooks/lib/src/snapshot_controller.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
part of 'hooks.dart';
22

33
/// Creates and disposes a [SnapshotController].
4-
///
4+
///
55
/// Note that [allowSnapshotting] must be set to `true`
66
/// in order for this controller to actually do anything.
77
/// This is consistent with [SnapshotController.new].
8-
///
8+
///
99
/// If [allowSnapshotting] changes on subsequent calls to [useSnapshotController],
1010
/// [SnapshotController.allowSnapshotting] will be called to update accordingly.
11-
///
11+
///
1212
/// ```dart
1313
/// final controller = useSnapshotController(allowSnapshotting: true);
1414
/// // is equivalent to
@@ -36,13 +36,14 @@ class _SnapshotControllerHook extends Hook<SnapshotController> {
3636
final bool allowSnapshotting;
3737

3838
@override
39-
HookState<SnapshotController, Hook<SnapshotController>>
40-
createState() => _SnapshotControllerHookState();
39+
HookState<SnapshotController, Hook<SnapshotController>> createState() =>
40+
_SnapshotControllerHookState();
4141
}
4242

4343
class _SnapshotControllerHookState
4444
extends HookState<SnapshotController, _SnapshotControllerHook> {
45-
late final controller = SnapshotController(allowSnapshotting: hook.allowSnapshotting);
45+
late final controller =
46+
SnapshotController(allowSnapshotting: hook.allowSnapshotting);
4647

4748
@override
4849
void didUpdateHook(_SnapshotControllerHook oldHook) {

0 commit comments

Comments
 (0)