preface

Because I did not look at the document from beginning to end, it is easy to miss a lot, so that this very practical small operation to miss, now make up notes

Real-time template

Real-time templates can be used to speed up the entry of commonly used code blocks. Call them by entering their ‘prefix’ and then select them in the code completion window:

  • Prefix stless: Create a subclass of StatelessWidget. In fact, if I type STL, I have it
  • Prefix STful: Create a StatefulWidget subclass and associate it with a State subclass. In fact, if I type STF here, I have it

You can also customize Templates in Settings > Editor > Live Templates.