TiledJsonReader constructor
TiledJsonReader(
- String pathFile
Implementation
TiledJsonReader(this.pathFile) {
_fileName = pathFile.split('/').last;
if (_fileName?.contains('.json') != true) {
throw Exception('only supports json files');
}
_basePathFile = pathFile.replaceAll(_fileName ?? '', '');
}