WT1.1.11 Null-Safe migration
This commit is contained in:
@@ -13,14 +13,14 @@ class BodyDevelopmentBloc extends Bloc<BodyDevelopmentEvent, BodyDevelopmentStat
|
||||
final WorkoutTreeRepository workoutTreeRepository;
|
||||
final ExerciseRepository exerciseRepository = ExerciseRepository();
|
||||
|
||||
List<int> radarTicks = List();
|
||||
List<String> radarFeatures = List();
|
||||
List<List<int>> radarData = List();
|
||||
List<int> radarTicks = [];
|
||||
List<String> radarFeatures = [];
|
||||
List<List<int>> radarData = [];
|
||||
|
||||
@override
|
||||
BodyDevelopmentBloc({this.workoutTreeRepository}): super(BodyDevelopmentInitial());
|
||||
BodyDevelopmentBloc({required this.workoutTreeRepository}) : super(BodyDevelopmentInitial());
|
||||
|
||||
Future<void> getData() async{
|
||||
Future<void> getData() async {
|
||||
radarTicks = [20, 40, 60, 80, 100];
|
||||
radarFeatures = ["Mell", "Bicepsz", "Tricepsz", "Hát", "Váll"];
|
||||
radarData = [
|
||||
|
||||
@@ -22,9 +22,8 @@ class BodyDevelopmentReady extends BodyDevelopmentState {
|
||||
|
||||
class BodyDevelopmentError extends BodyDevelopmentState {
|
||||
final String message;
|
||||
const BodyDevelopmentError({this.message});
|
||||
const BodyDevelopmentError({required this.message});
|
||||
|
||||
@override
|
||||
List<Object> get props => [message];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user