getDeviceInsets method
Implementation
@override
Future<BorderRadius> getDeviceInsets() async {
final map = await methodChannel.invokeMethod('getDeviceInsets');
return BorderRadius.only(
topLeft: Radius.circular((map['topLeft'] as num).toDouble()),
topRight: Radius.circular((map['topRight'] as num).toDouble()),
bottomLeft: Radius.circular((map['bottomLeft'] as num).toDouble()),
bottomRight: Radius.circular((map['bottomRight'] as num).toDouble()),
);
}