Call a constructor of the same class

master
黎明 6 years ago
parent 2d9b823fd8
commit 14352fd915

@ -6,5 +6,8 @@ class FlutterIconData extends IconData {
fontFamily:fontFamily, fontFamily:fontFamily,
fontPackage: "flutter_icons" fontPackage: "flutter_icons"
); );
const FlutterIconData.ionicons(int codePoint):super(codePoint,fontFamily: "Ionicons",fontPackage: "flutter_icons");
const FlutterIconData.ionicons(int codePoint):this(codePoint,"Ionicons");
const FlutterIconData.antDesign(int codePoint):this(codePoint,"AntDesign");
} }

Loading…
Cancel
Save