setMultipleProperties method

Future<void> setMultipleProperties(
  1. Map properties
)

sets all properties defined in the properties Json object

Implementation

Future<void> setMultipleProperties(Map properties) async {
  // check if the player is running
  if (running) {
    return await Future.forEach<MapEntry>(properties.entries,
        (element) async {
      return await socket.setProperty(element.key, element.value);
    });
  } else {
    throw _errorHandler.errorMessage(8, utils.getCaller());
  }
}