skip to Main Content

Can't figure out this Error "The method 'map' can't be unconditionally invoked because the receiver can be 'null'" – Flutter

I'm following this speed code tutorial and I'm facing some problems during somewhere on 5:08. import 'package:flutter/material.dart'; import 'dart:math'; class WaveColorPainter extends CustomPainter { Paint? _paint; List<Color>? colors; @override void paint(Canvas canvas, Size size) { colors = List.from(Colors.accents); colors!.removeRange(6, 13);…

VIEW QUESTION
Back To Top
Search