fontParams method

Map<String, Object?> fontParams(
  1. TextStyle h3
)

Implementation

Map<String, Object?> fontParams(TextStyle h3) {
  return {
    'size': h3.fontSize,
    'family': h3.fontFamily,
    'weight': h3.fontWeight?.value,
    'style': h3.fontStyle == FontStyle.italic ? ImpulsePlayerPluginConstants.ValueItalic : ImpulsePlayerPluginConstants.ValueNormal,
  };
}