getAttentionRegion method
Implementation
@override
Future<Rect?> getAttentionRegion() async {
Map<dynamic, dynamic>? arguments = await methodChannel
.invokeMapMethod(SeeSoPluginMethod.GET_ATTENTION_REGION.name);
if (arguments != null) {
double left = arguments[SeeSoPluginArgumentKey.ATTENTION_REGION_LEFT.name]
as double;
double top =
arguments[SeeSoPluginArgumentKey.ATTENTION_REGION_TOP.name] as double;
double right =
arguments[SeeSoPluginArgumentKey.ATTENTION_REGION_RIGHT.name]
as double;
double bottom =
arguments[SeeSoPluginArgumentKey.ATTENTION_REGION_BOTTOM.name]
as double;
return Rect.fromLTRB(left, top, right, bottom);
}
return null;
}