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