style method
dynamic
style({
- StarXpandStyleAlignment? alignment,
- StarXpandStyleFontType? fontType,
- bool? bold,
- bool? invert,
- bool? underLine,
- StarXpandStyleMagnification? magnification,
- double? characterSpace,
- double? lineSpace,
- double? horizontalPositionTo,
- double? horizontalPositionBy,
- List<
int> ? horizontalTabPosition, - StarXpandStyleInternationalCharacter? internationalCharacter,
- StarXpandStyleCharacterEncodingType? secondPriorityCharacterEncoding,
- List<
StarXpandStyleCjkCharacterType> ? cjkCharacterPriority,
Implementation
style({
StarXpandStyleAlignment? alignment,
StarXpandStyleFontType? fontType,
bool? bold,
bool? invert,
bool? underLine,
StarXpandStyleMagnification? magnification,
double? characterSpace,
double? lineSpace,
double? horizontalPositionTo,
double? horizontalPositionBy,
List<int>? horizontalTabPosition,
StarXpandStyleInternationalCharacter? internationalCharacter,
StarXpandStyleCharacterEncodingType? secondPriorityCharacterEncoding,
List<StarXpandStyleCjkCharacterType>? cjkCharacterPriority,
}) {
_actions.add({
'action': 'style',
'alignment': alignment?.name,
'fontType': fontType?.name,
'bold': bold,
'invert': invert,
'underLine': underLine,
'magnification': magnification?.toMap(),
'characterSpace': characterSpace,
'lineSpace': lineSpace,
'horizontalPositionTo': horizontalPositionTo,
'horizontalPositionBy': horizontalPositionBy,
'horizontalTabPosition': horizontalTabPosition,
'internationalCharacter': internationalCharacter?.name,
'secondPriorityCharacterEncoding': secondPriorityCharacterEncoding?.name,
'cjkCharacterPriority': cjkCharacterPriority?.map((e) => e.name).toList()
}..trim());
}