setAttentionRegion method

  1. @override
Future<void> setAttentionRegion(
  1. 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);
}