remove use prefix from hook file
This commit is contained in:
parent
9d49dedcdb
commit
5c871da9ff
|
@ -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));
|
Loading…
Reference in New Issue