getModificationInfo method

  1. @override
Map<String, dynamic>? getModificationInfo(
  1. String key
)
override

Implementation

@override
Map<String, dynamic>? getModificationInfo(String key) {
  if (visitor.modifications.containsKey(key)) {
    try {
      var modification = visitor.modifications[key];
      return modification?.toJsonInformation();
    } catch (exp) {
      return null;
    }
  } else {
    Flagship.logger(
        Level.ERROR, GET_MODIFICATION_INFO_ERROR.replaceFirst("%s", key));
    return null;
  }
}