Rename function

This commit is contained in:
Vishnu Mohandas 2021-02-01 02:24:22 +05:30
parent f962230060
commit c2dbdaaf7b
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ class BillingService {
} }
} }
Future<double> getUsageInGBs() async { Future<double> fetchUsageInGBs() async {
try { try {
final response = await _dio.get( final response = await _dio.get(
_config.getHttpEndpoint() + "/billing/usage", _config.getHttpEndpoint() + "/billing/usage",

View file

@ -157,7 +157,7 @@ class BackupSettingsWidgetState extends State<BackupSettingsWidget> {
} }
void _getUsage() { void _getUsage() {
BillingService.instance.getUsageInGBs().then((usage) async { BillingService.instance.fetchUsageInGBs().then((usage) async {
if (mounted) { if (mounted) {
setState(() { setState(() {
_usageInGBs = usage; _usageInGBs = usage;