remove use prefix from hook file

This commit is contained in:
shilangyu 2020-09-16 01:27:01 +02:00
parent 9d49dedcdb
commit 5c871da9ff
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
import 'package:flutter_hooks/flutter_hooks.dart';
class Ref<T> {
final T current;
const Ref(this.current);
T current;
Ref(this.current);
}
/// see React's useRef
Ref<T> useRef<T>(T initialValue) => useMemoized(() => Ref(initialValue));