dvStudioHasStructure function

bool dvStudioHasStructure(
  1. String? directory,
  2. String route
)

Whether a structure was captured for route in directory.

Implementation

bool dvStudioHasStructure(String? directory, String route) {
  final String? name = dvStudioStructureName(route);
  if (directory == null || name == null) return false;
  return DVAssetSources.at(directory).file('$name.json') != null;
}