first implementation finished
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
|
||||
void useOnDispose(VoidCallback onDispose) {
|
||||
useEffect(
|
||||
() {
|
||||
return onDispose;
|
||||
},
|
||||
const [],
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user