setAppearance method

  1. @override
Future<void> setAppearance(
  1. TextStyle h3,
  2. TextStyle h4,
  3. TextStyle s1,
  4. TextStyle l4,
  5. TextStyle l7,
  6. TextStyle p1,
  7. TextStyle p2,
  8. Color accentColor,
)
override

Implementation

@override
Future<void> setAppearance(TextStyle h3, TextStyle h4, TextStyle s1, TextStyle l4, TextStyle l7, TextStyle p1, TextStyle p2, Color accentColor) async {
  await methodChannel.invokeMethod<void>(ImpulsePlayerPluginConstants.MethodSetAppearance, {
    'h3': fontParams(h3),
    'h4': fontParams(h4),
    's1': fontParams(s1),
    'l4': fontParams(l4),
    'l7': fontParams(l7),
    'p1': fontParams(p1),
    'p2': fontParams(p2),
    'accent_color': accentColor.value,
  });
}