createNativeSubViewAttribute method
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,
})
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
};
}