share method

  1. @override
Future<bool> share(
  1. List<String> atSigns, {
  2. ObjectLifeCycleOptions? options,
})

share shares the AtCollectionModel object with the atSigns in atSigns list.

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

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

Implementation

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