mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
8 lines
240 B
Dart
8 lines
240 B
Dart
import 'dart:convert';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
Future<Map<String, dynamic>> readJson(String filePath) async {
|
|
final String response = await rootBundle.loadString('$filePath.json');
|
|
return await json.decode(response);
|
|
} |