Error compiling to JavaScript:
Info: Compiling with sound null safety
Warning: Interpreting this as package URI, ‘package:dartpad_sample/main.dart’.
lib/main.dart:1:23:
Error: The parameter ‘angka1’ can’t have a value of ‘null’ because of its type ‘int’, but the implicit default value is ‘null’.
void cetakTambah({int angka1, int angka2}){
^^^^^^
lib/main.dart:1:35:
Error: The parameter ‘angka2’ can’t have a value of ‘null’ because of its type ‘int’, but the implicit default value is ‘null’.
void cetakTambah({int angka1, int angka2}){
^^^^^^
Error: Compilation failed.
saya mengalami kendala saat menjalankan tutorial pada topik fungsi di kelas Belajar Flutter Mobile Apps Tingkat Pemula. pada sesi ini muncul error diatas. padahal isi codenya sudah sama persis dengan yang diajarkan pada video. mohon solusinya.
screenshoot :
https://drive.google.com/file/d/1vUO83Wwe5_R7Gi3wO-ylieW9FSuPaHNv/view?usp=sharing