Dart: extend an existing type with a new interface
How can I “add” a new interface to a type that I can’t modify, such as int
or DateTime
, without incurring in extra runtime costs?
Ways to extend an existing type with a new interface
How can I “add” a new interface to a type that I can’t modify, such as int
or DateTime
, without incurring in extra runtime costs?