build method
Building the NUIGlobalConfig instance
Implementation
Future<NUIGlobalConfig> build() async{
final config = NUIGlobalConfig._builder(this);
if(!isNullOrEmpty(config._filenames)){
// If the main filename is also provided, add the main filename into the same list with the rest of the filenames
if(!isNullOrEmpty(config._filename)) config._filenames!.add(config._filename!);
await config.loadFromAssets(config._filenames!);
}
else if(!isNullOrEmpty(config._filename)){
await config.loadFromAsset(config._filename!);
}
return config;
}