Classes The Fast and Easy Way - Learn Dart Programming 13

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024

Комментарии • 14

  • @Codemycom
    @Codemycom  2 года назад +1

    ▶ Watch Entire Dart Playlist ✅ Subscribe To My RUclips Channel:
    bit.ly/3MrAlfh bit.ly/2IGzvOR
    ▶ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
    ▶ Get The Code:
    bit.ly/3EOXo18

  • @hasnatsyed
    @hasnatsyed 11 месяцев назад

    excellent explanation

  • @umairmalik4102
    @umairmalik4102 2 года назад +1

    hello
    i am a huge fan of you
    please can you create tutorial series for fastapi frame work of python

    • @Codemycom
      @Codemycom  2 года назад

      Sorry, don't know what that is

  • @LeoTechy
    @LeoTechy 2 года назад

    How do you create an instance of that class with no initialization. class with required fields
    before it used to be
    ClassName name = new ClassName();
    but now it doesn't work

    • @Codemycom
      @Codemycom  2 года назад

      Don't use the constructor, instead build a method to assign the things later.

    • @gofullstack
      @gofullstack 11 месяцев назад

      For a model/data class, I'd rather do this;
      enum Sex {male, female}
      class Person{
      final String name;
      final Sex sex;
      final int age;
      const Person({required this.name, required this.sex, required this. age});
      /// Create copyWith() method here
      /// Create toMap() method here
      /// Create factory Person.fromMap()
      @override
      String toString() => 'Person(name: $name, sex: $sex, age: $age)';
      }
      final person = Person(name: 'John', sex: Sex.male, age: 44);
      print(person);
      Dart should figure out what type the variable "person" is.

  • @evilroxxx
    @evilroxxx 9 месяцев назад

    Why is String with uppercase S but all other types are lower case?

    • @FlutterWithEssoun
      @FlutterWithEssoun 4 месяца назад

      Basically, if you watch closely, you will notice that all the iterables start with a cap. Like List, Map, String, etc.

  • @lilgohan
    @lilgohan 8 месяцев назад

    3:39 take a shot every time he says "this"

  • @Rishi_Kumar360
    @Rishi_Kumar360 2 года назад +1

    Bro you can make video on Hindi??

    • @Codemycom
      @Codemycom  2 года назад +2

      No, I don't speak Hindi.

    • @Rishi_Kumar360
      @Rishi_Kumar360 2 года назад +1

      Ok 👌🌼 Your Videos is very helpful love from India