safeDataCache<T> method

void safeDataCache<T>({
  1. required dynamic funCallBack(),
  2. bool? isDataCache = false,
})

Implementation

void safeDataCache<T>(
    {required Function() funCallBack, bool? isDataCache = false}) {
  if (isDataCache == true) {
    funCallBack();
  }
}