I created a metadata annotation like this:
class UseInt {
const UseInt();
}
@UseInt()
class Foo {
// Should give a lint warning saying "The class should only use ints".
String message = '';
}
As you may have seen, inbuilt Dart and Flutter metadata gives you a warning message when you try to do something against what was originally meant, something like this:
How can I make the IDE do something like this in my original code?
