unshare method

  1. @override
Future<bool> unshare({
  1. List<String>? atSigns,
})

unshare unshares the AtCollectionModel object with the atSigns in atSigns list.

If atSigns is not passed then AtCollectionModel object is unshared with every @sign it was previously shared.

Phone personalPhone = await Phone('personal phone').save();
var sahreRes = await personalPhone.share(['@kevin', '@colin']);
var unshareRes = await personalPhone.unshare(['@kevin']);

Returns true, if all the unshare operation is successful else returns false. If fine grained information on individual operations that happens within unshare is desired then use streams.unshare

Implementation

@override
Future<bool> unshare({List<String>? atSigns}) async {
  return _atCollectionModelOperations.unshare(atSigns: atSigns);
}