import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; class CameraInfoService { @visibleForTesting static const cameraInfoPlatformChannel = MethodChannel( "com.vodemn.lightmeter.CameraInfoPlatformChannel.MethodChannel", ); const CameraInfoService(); Future mainCameraEfl() async { final focalLength = await cameraInfoPlatformChannel.invokeMethod('mainCameraEfl'); return focalLength?.round(); } }