It helps with project organization to break out some of your functions and classes into separate files. In this video, create a new file to store a question class.
show the questions in our list of questions. … And also match up the questions … with the answers … to check to see if the user got the right answer. … But at the moment, it's a bit clunky. … We've got two lists … that are tracking things that should be … associated with each other. … or a flex property, … we can also create a class that have … a question property and a answer property … so that we can associate the questions and answers together … in a single object. … In order to do this, … we're going to go into our lit folder … where all of the action happens. … And we're going to right click … and go to new, … and we're going to select to create a new Dart file. … And you're going to call this Dart file … question because that's exactly … what it's going to represent. … And then it says, do you want to add this to Git? … You can either click yes or no, … doesn't really matter in this case … because we're not really using Git for this project. … So in order to create a new class, …
Released
8/30/2019This course was created by London App Brewery. We are pleased to host this content in our library.
Share this video
Embed this video
Video: Creating a question class