setAttentionRegion method
Future<void>
setAttentionRegion(
- Rect region
)
override
Implementation
@override
Future<void> setAttentionRegion(Rect region) async {
final methodName = EyedidMethodName.setAttentionRegion.name;
Map<String, dynamic> argumentMap = {
EyedidArgumentKey.attentionRegionLeft.name: region.left,
EyedidArgumentKey.attentionRegionTop.name: region.top,
EyedidArgumentKey.attentionRegionRight.name: region.right,
EyedidArgumentKey.attentionRegionBottom.name: region.bottom,
};
await methodChannel.invokeMethod(methodName, argumentMap);
}