Giter Club home page Giter Club logo

Comments (6)

Dimibe avatar Dimibe commented on August 10, 2024

@ashutosh840 What exactly is the problem?
Can you tell me how the list looks with your implementation and what you would expect instead?

from grouped_list.

ashutosh840 avatar ashutosh840 commented on August 10, 2024

It should be like this

**thursday**
Ashutosh
keshav
**monday**
Aniket
**saturday**
Eishu

from grouped_list.

ashutosh840 avatar ashutosh840 commented on August 10, 2024

There would be no stars it is just to say that it is the header

from grouped_list.

Dimibe avatar Dimibe commented on August 10, 2024

@ashutosh840 okay I unterstand.
After a look at your code it should be displayd exactly like this.
How is it at the moment? Can you post a screenshot or any information to get the problem?

from grouped_list.

ashutosh840 avatar ashutosh840 commented on August 10, 2024

It is showing some error. Please try it on your computer you will see it.

from grouped_list.

Dimibe avatar Dimibe commented on August 10, 2024

After rereading your code I notice some mistakes, that do not have anything do to with this plugin.
In your constructor you are not assigning the values to the class attributes but you assign class attributes to the variables.

In case of this:

 record(String Name, int DayofBirth){
    Name=this.Name;
    DayofBirth=this.DayofBirth;
  }

It need to be like this:

 record(String Name, int DayofBirth){
    this.Name=Name;
    this.DayofBirth=DayofBirth;
  }

In dart you you can just write the following, it is the same as the above:

record(this.Name, this.DayofBirth);

With this change your code should run as expected.

Some further recommendations which do not affect the execution of your code:
Variables names should always be in camel case, so name instead of Name and dayOfBirth instead DayofBirth.
Class names should always start with a capital letter, so Record instead of record.

Here is a good articel from the offical website which might help you:
https://dart.dev/guides/language/effective-dart
https://dart.dev/guides/language/language-tour

from grouped_list.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.