Helper constructor

Helper({
  1. String srcAlpha = Helper.DEC,
  2. String dstAlpha = Helper.HEX,
})

Implementation

Helper({
  this.srcAlpha = Helper.DEC,
  this.dstAlpha = Helper.HEX,
}) {
  if ((srcAlpha.isEmpty) || (dstAlpha.isEmpty)) {
    throw Exception('Invalid srcAlpha or dstAlpha');
  }
  this.srcAlpha = srcAlpha;
  this.dstAlpha = dstAlpha;
}