calculateAreaTriangle function

String calculateAreaTriangle(
  1. double width,
  2. double height
)

Implementation

String calculateAreaTriangle(double width, double height) {
  double result = width * height / 2;
  final formatter = NumberFormat('#.####');
  return formatter.format(result);
}