Rename function
This commit is contained in:
parent
f962230060
commit
c2dbdaaf7b
|
@ -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",
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue