createNativeSubViewAttribute method

Map createNativeSubViewAttribute(
  1. double width,
  2. double height, {
  3. double x = 0,
  4. double y = 0,
  5. String backgroundColorStr = '#FFFFFF',
  6. String textColorStr = '#000000',
  7. double textSize = 15,
  8. bool isCustomClick = true,
})

自定义模版参数

Implementation

Map createNativeSubViewAttribute(double width, double height,
    {double x = 0,
    double y = 0,
    String backgroundColorStr = '#FFFFFF',
    String textColorStr = '#000000',
    double textSize = 15,
    bool isCustomClick = true}) {
  return {
    'x': x,
    'y': y,
    'width': width,
    'height': height,
    'backgroundColorStr': backgroundColorStr,
    'textColorStr': textColorStr,
    'textSize': textSize,
    'isCustomClick': isCustomClick,
  };
}