handleGroupRemove method

void handleGroupRemove(
  1. MethodCall call
)

Implementation

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

  String name = args['name'] as String;
  dynamic value = args['value'];
  get_group(groupKey,
          (groupID is Map || groupID is List) ? groupID.jsify() : groupID)
      .remove(name, (value is Map || value is List) ? value.jsify() : value);
}