handleGroupSetPropertyOnce method

void handleGroupSetPropertyOnce(
  1. MethodCall call
)

Implementation

void handleGroupSetPropertyOnce(MethodCall call) {
  Map<Object?, Object?> args = call.arguments as Map<Object?, Object?>;
  String groupKey = args['groupKey'] as String;
  dynamic groupID = args['groupID'];

  dynamic properties = args['properties'];

  get_group(groupKey,
          (groupID is Map || groupID is List) ? js.jsify(groupID) : groupID)
      .set_once(properties.keys.first, properties[properties.keys.first]);
}