import 'package:news/utils/api.dart'; import 'package:news/utils/strings.dart'; class SystemRepository { Future fetchSettings() async { try { final result = await Api.sendApiRequest(url: Api.getSettingApi, body: null, isGet: true); return result[DATA]; } catch (e) { throw ApiException(e.toString()); } } }