Error compiling to JavaScript

Beranda › Forums › Belajar Flutter Mobile Apps Tingkat Pemula › Error compiling to JavaScript

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46307
    Zifferent
    Participant

      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

      #46548
      Anonymous

        Null safety nya harap dimatikan terlebih dahulu ya

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.
      Shopping cart0
      There are no products in the cart!
      Continue shopping