useOrientationFn function
void
useOrientationFn(
- _OrientationCallback onStateChanged
Calls given function changed screen orientation of user's device.
Implementation
// ignore: library_private_types_in_public_api
void useOrientationFn(_OrientationCallback onStateChanged) {
final context = useContext();
use(
_OrientationHook(
MediaQuery.of(context).orientation,
onStateChanged: onStateChanged,
),
);
}