getScreenHeightInInches method
Fetches the screen's height size in inches.
Implementation
@override
Future<double?> getScreenHeightInInches() async {
final screenHeightInInches =
await methodChannel.invokeMethod<double>('getScreenHeightSizeInInches');
if (screenHeightInInches != null) {
return double.parse(screenHeightInInches.toStringAsFixed(3));
}
return null;
}