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. String textAlignmentStr = 'left',
  8. double textSize = 15,
  9. bool isCustomClick = false,
  10. int cornerRadius = 0,
})

Implementation

Map createNativeSubViewAttribute(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}) {
  return {
    'x': x,
    'y': y,
    'width': width,
    'height': height,
    'backgroundColorStr': backgroundColorStr,
    'textColorStr': textColorStr,
    'textSize': textSize,
    'textAlignmentStr':textAlignmentStr,
    'isCustomClick': isCustomClick,
    'cornerRadius': cornerRadius
  };
}