calcRepeatSize function

Future calcRepeatSize(
  1. MethodChannel methodChannel,
  2. String pageId,
  3. String componentId,
  4. String type,
  5. String key,
  6. String expression
)

pageId: 页面ID componentId :组件ID type :TYPE_PROPERTY(属性), TYPE_DIRECTIVE(指令) key : properties对应的key,方便结果回调查找 expression : 表达式

Implementation

Future<dynamic> calcRepeatSize(MethodChannel methodChannel, String pageId,
    String componentId, String type, String key, String expression) async {
  return await methodChannel.invokeMethod('handleRepeat', {
    'pageId': pageId,
    'id': componentId,
    'type': type,
    'key': key,
    'watch': true,
    'expression': '$expression.length'
  });
}