updateResource method

  1. @override
void updateResource(
  1. String fullName,
  2. HTSource resource
)
override

Implementation

@override
void updateResource(String fullName, HTSource resource) {
  final normalized = getAbsolutePath(key: fullName);
  if (!_cached.containsKey(normalized)) {
    throw HTError.resourceDoesNotExist(normalized);
  } else {
    _cached[normalized] = resource;
  }
}