max method

double max(
  1. double a,
  2. double b
)

Implementation

double max(double a, double b) => a > b ? a : b;