removeCallback method

  1. @override
void removeCallback(
  1. DataSetCallback? onDataSetChanged
)
override

移除数据变化监听器

Implementation

@override
void removeCallback(DataSetCallback? onDataSetChanged) {
  if (null == onDataSetChanged) {
    _dataSetCallbacks.clear();
  } else {
    _dataSetCallbacks.remove(onDataSetChanged);
  }
}