explicitly declare empty lists

This commit is contained in:
julian 2022-09-03 10:31:20 -06:00
parent 4833c4ca28
commit eb63b1828c
2 changed files with 3 additions and 2 deletions

View file

@ -2,4 +2,4 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:stackwallet/models/exchange/change_now/currency.dart';
final availableChangeNowCurrenciesStateProvider =
StateProvider<List<Currency>>((ref) => []);
StateProvider<List<Currency>>((ref) => <Currency>[]);

View file

@ -2,4 +2,5 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:stackwallet/models/exchange/change_now/available_floating_rate_pair.dart';
final availableFloatingRatePairsStateProvider =
StateProvider<List<AvailableFloatingRatePair>>((ref) => []);
StateProvider<List<AvailableFloatingRatePair>>(
(ref) => <AvailableFloatingRatePair>[]);