Calls given function changed screen orientation of user's device.
dependencies:
flutter_use: ^0.0.2
class Sample extends HookWidget {
@override
Widget build(BuildContext context) {
useOrientationFn((orientation) {
debugPrint('Orientation: $orientation');
});
return Container();
}
}