This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class MyCustomWithInnerWidget extends _InnerWidget { | |
MyCustomWithInnerWidget.variant1({ | |
required super.itemCount, | |
required super.someBool, | |
}); | |
MyCustomWithInnerWidget.variant2({ | |
required super.someBool, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class MyCustomWidget extends StatelessWidget { | |
MyCustomWidget.variant1({ | |
required this.itemCount, | |
required this.someBool, | |
}) : somePropertyDefinedByConstructor = itemCount != 10 && someBool; | |
MyCustomWidget.variant2({super.key, | |
required this.someBool, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
Map<Type, ProductFeature> productMap = {}; | |
Map<Type, FeatureBuilder> featuerBuilderMap = {}; | |
featuerBuilderMap.addAll({GrapeType:GrapeBuilder()}); | |
productMap.addAll({GrapeType:GrapeType()}); | |
NewerOlder