createNativeSubCustomViewAttribute method

Map createNativeSubCustomViewAttribute(
  1. double width,
  2. double height, {
  3. double x = 0,
  4. double y = 0,
  5. String backgroundColorStr = '#FFFFFF',
  6. String textColorStr = '#000000',
  7. String textAlignmentStr = 'left',
  8. double textSize = 15,
  9. bool isCustomClick = false,
  10. int cornerRadius = 0,
  11. ATCustomViewNative customViewNative = ATCustomViewNative.view,
  12. String imagePath = '',
  13. String title = '',
})

Implementation

Map createNativeSubCustomViewAttribute(double width, double height,
    {double x = 0,
      double y = 0,
      String backgroundColorStr = '#FFFFFF',
      String textColorStr = '#000000',
      String textAlignmentStr = 'left',
      double textSize = 15,
      bool isCustomClick = false,
      int cornerRadius = 0,
      ATCustomViewNative customViewNative = ATCustomViewNative.view,
      String imagePath = '',
      String title = ''
    }) {
  return {
    'x': x,
    'y': y,
    'width': width,
    'height': height,
    'backgroundColorStr': backgroundColorStr,
    'textColorStr': textColorStr,
    'textSize': textSize,
    'textAlignmentStr':textAlignmentStr,
    'isCustomClick': isCustomClick,
    'cornerRadius': cornerRadius,
    'type': customViewNative.index.toString(),
    'imagePath': imagePath,
    'title': title
  };
}