CalculatorKey constructor

CalculatorKey({
  1. Key? key,
  2. String? text,
  3. dynamic onPress()?,
  4. TextStyle? style,
  5. Color? backgroundColor,
})

Implementation

CalculatorKey(
    {Key? key, this.text, this.onPress, this.style, this.backgroundColor})
    : isZeroKey = text == '0',
      super(key: key);