fetchData method
Fetches country data.
If jsonData is provided during class instantiation, it will be returned. Otherwise, the data is fetched from the default asset path.
Returns a Future that completes with the country data in a string format.
Implementation
@override
Future<String> fetchData() async {
if (jsonData != null && jsonData!.isNotEmpty) {
return jsonData!;
}
return rootBundle.loadString(_kAssetPath);
}