Extensions
This allows you to add features to a pre existing class
class Boring {
// ...
}
extension on Boring {
// cool new attr and methods and getters and setters
}You can control the scope too
class Boring {
// ...
}
extension Exciting on Boring {
// cool new attr and methods and getters and setters
}