SpWMLFontStyle constructor
SpWMLFontStyle({
- Map<
EnumSpWMLElementType, SpWMLFontStyleParams> ? overrideMap, - bool useV2MaterialStyle = false,
- bool isBtnColorModeV3 = false,
Constructor
overrideMap
: (en) A map for overriding parameters. You can override the default parameters for keys set in the system. (ja) パラメータを上書きするためのマップです。 システムに設定されたキーに対するデフォルトのパラメータを上書きできます。- useV2MaterialStyle : If true, load SpWMLFontStyle of material version2 style and material version3 style. If false, load default SpWMLFontStyle and material version3 style.
- isBtnColorModeV3 : If true, set button color null.
Implementation
SpWMLFontStyle(
{Map<EnumSpWMLElementType, SpWMLFontStyleParams>? overrideMap,
this.useV2MaterialStyle = false,
this.isBtnColorModeV3 = false}) {
styleMap = _loadDefaultMap();
if (overrideMap != null) {
for (EnumSpWMLElementType i in overrideMap.keys) {
styleMap[i] = overrideMap[i]!;
}
}
}