SpWMLFontStyle constructor

SpWMLFontStyle({
  1. Map<EnumSpWMLElementType, SpWMLFontStyleParams>? overrideMap,
  2. bool useV2MaterialStyle = false,
  3. 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]!;
    }
  }
}