lerp method Null safety

SfBarcodeThemeData? lerp(
  1. SfBarcodeThemeData? a,
  2. SfBarcodeThemeData? b,
  3. double t
)

Returns the barcode theme data

Implementation

static SfBarcodeThemeData? lerp(
    SfBarcodeThemeData? a, SfBarcodeThemeData? b, double t) {
  if (a == null && b == null) {
    return null;
  }
  return SfBarcodeThemeData(
    backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t),
    barColor: Color.lerp(a.barColor, b.barColor, t),
    textColor: Color.lerp(a.textColor, b.textColor, t),
  );
}