hasConstConstructor method
Checks if a class has a const constructor.
Implementation
bool hasConstConstructor(ClassDeclaration classDecl) {
for (final member in classDecl.members) {
if (member is ConstructorDeclaration && member.constKeyword != null) {
return true;
}
}
return false;
}