setLogos method

Future<void> setLogos({
  1. String name = 'App-logos',
  2. String content = '<name>Logos</name>',
})

Sets the logos KML into the Liquid Galaxy rig. A KML name and content may be passed, but it's not required.

Implementation

Future<void> setLogos({
  String name = 'App-logos',
  String content = '<name>Logos</name>',
}) async {
  final screenOverlay = ScreenOverlayModel.logos();

  final kml = KMLModel(
    name: name,
    content: content,
    screenOverlay: screenOverlay.tag,
  );
  try {
    await sendKMLToSlave(logoScreen, kml.body);
  } catch (e) {
    // ignore: avoid_print
    print(e);
  }
}