create method

  1. @override
  2. @protected
Voltage create(
  1. double value,
  2. VoltageUnit unit
)
override

Factory that creates a new instance of the concrete subtype Q.

Implementation

@override
@protected
Voltage create(double value, VoltageUnit unit) => Voltage(value, unit);