Issue We are migrating our Flutter app into null safety and I’ve encountered a bunch of missing helpers in order to get rid easily of an optional into a non-optional of the same type. To get you in the context,
Continue readingTag: extension-methods
Flutter not compiling extensions when imported from another file
Issue I have created an extension in a file, when importing it to another file the compiler doesn’t see it at all and says `this method isn’t defined’, however if I copy the extension inside the file where I need
Continue readingFlutter not compiling extensions when imported from another file
Issue I have created an extension in a file, when importing it to another file the compiler doesn’t see it at all and says `this method isn’t defined’, however if I copy the extension inside the file where I need
Continue readingDart extension: don't access members with 'this' unless avoiding shadowing
Issue I’m learning to use the new Dart extension methods. I’m doing this: extension StringInsersion on StringBuffer { void insertCharCodeAtStart(int codeUnit) { final end = this.toString(); this.clear(); this.writeCharCode(codeUnit); this.write(end); } int codeUnitAt(int index) { return this.toString().codeUnitAt(index); } } So that
Continue readingDart: Extension method on enum doesn't work "The method isn't defined for the class"
Issue basend this Question I created an enum in dart with an extension methode: enum TagVisibility { public, shared, private, } extension on TagVisibility { String get german { switch(this){ case TagVisibility.public: return “Für alle sichtbar”; case TagVisibility.shared: return “Für
Continue readingFlutter extension-methods not working, it says "undefined class" and "requires the extension-methods language feature"
Issue I’m slowly building my personal website over at dlblack.dev, and I’m trying to spice it up a little bit. For example, from a computer (rather than a tablet or phone since they don’t have mouse pointers), if you hover
Continue readingFlutter extension-methods not working, it says "undefined class" and "requires the extension-methods language feature"
Issue I’m slowly building my personal website over at dlblack.dev, and I’m trying to spice it up a little bit. For example, from a computer (rather than a tablet or phone since they don’t have mouse pointers), if you hover
Continue reading