hasChanged method

Future<bool> hasChanged(
  1. String newData
)

Implementation

Future<bool> hasChanged(String newData) async {
  String? cachedData = await data;
  if (newData.length != cachedData.length) {
    return true;
  }
  return false;
}