removeModel method

Future<void> removeModel(
  1. String collectionId,
  2. String mid
)

Implementation

Future<void> removeModel(String collectionId, String mid) async {
  try {
    await removeData(collectionId, mid);
    // Delta 를 저장한다.
    Map<String, dynamic> delta = {};
    delta['mid'] = mid;
    //print('removeModel()');
    HycopFactory.realtime?.setDelta(directive: 'remove', mid: mid, delta: delta);
  } catch (e) {
    logger.severe("setModel(remove) error", e);
    throw HycopException(message: "setModel(remove) error", exception: e as Exception);
  }
}