main.dart:5:7: Error: The non-abstract class 'Triangle' is missing implementations for these members:
- Shape.area
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class Triangle extends Shape {
^^^^^^^^
main.dart:2:10: Context: 'Shape.area' is defined here.
double area();
^^^^