Skip to content

Commit 08da705

Browse files
committed
code_block [nfc]: Make CodeBlockTextStyles.lerp's other non-nullable
1 parent e53950f commit 08da705

File tree

1 file changed

+64
-64
lines changed

1 file changed

+64
-64
lines changed

lib/widgets/code_block.dart

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -477,73 +477,73 @@ class CodeBlockTextStyles {
477477
};
478478
}
479479

480-
CodeBlockTextStyles lerp(CodeBlockTextStyles? other, double t) {
480+
CodeBlockTextStyles lerp(CodeBlockTextStyles other, double t) {
481481
if (identical(this, other)) return this;
482482

483483
return CodeBlockTextStyles._(
484-
plain: TextStyle.lerp(plain, other?.plain, t)!,
485-
hll: TextStyle.lerp(_hll, other?._hll, t)!,
486-
c: TextStyle.lerp(_c, other?._c, t)!,
487-
err: TextStyle.lerp(_err, other?._err, t)!,
488-
k: TextStyle.lerp(_k, other?._k, t)!,
489-
o: TextStyle.lerp(_o, other?._o, t)!,
490-
cm: TextStyle.lerp(_cm, other?._cm, t)!,
491-
cp: TextStyle.lerp(_cp, other?._cp, t)!,
492-
c1: TextStyle.lerp(_c1, other?._c1, t)!,
493-
cs: TextStyle.lerp(_cs, other?._cs, t)!,
494-
gd: TextStyle.lerp(_gd, other?._gd, t)!,
495-
ge: TextStyle.lerp(_ge, other?._ge, t)!,
496-
gr: TextStyle.lerp(_gr, other?._gr, t)!,
497-
gh: TextStyle.lerp(_gh, other?._gh, t)!,
498-
gi: TextStyle.lerp(_gi, other?._gi, t)!,
499-
go: TextStyle.lerp(_go, other?._go, t)!,
500-
gp: TextStyle.lerp(_gp, other?._gp, t)!,
501-
gs: TextStyle.lerp(_gs, other?._gs, t)!,
502-
gu: TextStyle.lerp(_gu, other?._gu, t)!,
503-
gt: TextStyle.lerp(_gt, other?._gt, t)!,
504-
kc: TextStyle.lerp(_kc, other?._kc, t)!,
505-
kd: TextStyle.lerp(_kd, other?._kd, t)!,
506-
kn: TextStyle.lerp(_kn, other?._kn, t)!,
507-
kp: TextStyle.lerp(_kp, other?._kp, t)!,
508-
kr: TextStyle.lerp(_kr, other?._kr, t)!,
509-
kt: TextStyle.lerp(_kt, other?._kt, t)!,
510-
m: TextStyle.lerp(_m, other?._m, t)!,
511-
s: TextStyle.lerp(_s, other?._s, t)!,
512-
na: TextStyle.lerp(_na, other?._na, t)!,
513-
nb: TextStyle.lerp(_nb, other?._nb, t)!,
514-
nc: TextStyle.lerp(_nc, other?._nc, t)!,
515-
no: TextStyle.lerp(_no, other?._no, t)!,
516-
nd: TextStyle.lerp(_nd, other?._nd, t)!,
517-
ni: TextStyle.lerp(_ni, other?._ni, t)!,
518-
ne: TextStyle.lerp(_ne, other?._ne, t)!,
519-
nf: TextStyle.lerp(_nf, other?._nf, t)!,
520-
nl: TextStyle.lerp(_nl, other?._nl, t)!,
521-
nn: TextStyle.lerp(_nn, other?._nn, t)!,
522-
nt: TextStyle.lerp(_nt, other?._nt, t)!,
523-
nv: TextStyle.lerp(_nv, other?._nv, t)!,
524-
nx: TextStyle.lerp(_nx, other?._nx, t)!,
525-
ow: TextStyle.lerp(_ow, other?._ow, t)!,
526-
w: TextStyle.lerp(_w, other?._w, t)!,
527-
mf: TextStyle.lerp(_mf, other?._mf, t)!,
528-
mh: TextStyle.lerp(_mh, other?._mh, t)!,
529-
mi: TextStyle.lerp(_mi, other?._mi, t)!,
530-
mo: TextStyle.lerp(_mo, other?._mo, t)!,
531-
sb: TextStyle.lerp(_sb, other?._sb, t)!,
532-
sc: TextStyle.lerp(_sc, other?._sc, t)!,
533-
sd: TextStyle.lerp(_sd, other?._sd, t)!,
534-
s2: TextStyle.lerp(_s2, other?._s2, t)!,
535-
se: TextStyle.lerp(_se, other?._se, t)!,
536-
sh: TextStyle.lerp(_sh, other?._sh, t)!,
537-
si: TextStyle.lerp(_si, other?._si, t)!,
538-
sx: TextStyle.lerp(_sx, other?._sx, t)!,
539-
sr: TextStyle.lerp(_sr, other?._sr, t)!,
540-
s1: TextStyle.lerp(_s1, other?._s1, t)!,
541-
ss: TextStyle.lerp(_ss, other?._ss, t)!,
542-
bp: TextStyle.lerp(_bp, other?._bp, t)!,
543-
vc: TextStyle.lerp(_vc, other?._vc, t)!,
544-
vg: TextStyle.lerp(_vg, other?._vg, t)!,
545-
vi: TextStyle.lerp(_vi, other?._vi, t)!,
546-
il: TextStyle.lerp(_il, other?._il, t)!,
484+
plain: TextStyle.lerp(plain, other.plain, t)!,
485+
hll: TextStyle.lerp(_hll, other._hll, t)!,
486+
c: TextStyle.lerp(_c, other._c, t)!,
487+
err: TextStyle.lerp(_err, other._err, t)!,
488+
k: TextStyle.lerp(_k, other._k, t)!,
489+
o: TextStyle.lerp(_o, other._o, t)!,
490+
cm: TextStyle.lerp(_cm, other._cm, t)!,
491+
cp: TextStyle.lerp(_cp, other._cp, t)!,
492+
c1: TextStyle.lerp(_c1, other._c1, t)!,
493+
cs: TextStyle.lerp(_cs, other._cs, t)!,
494+
gd: TextStyle.lerp(_gd, other._gd, t)!,
495+
ge: TextStyle.lerp(_ge, other._ge, t)!,
496+
gr: TextStyle.lerp(_gr, other._gr, t)!,
497+
gh: TextStyle.lerp(_gh, other._gh, t)!,
498+
gi: TextStyle.lerp(_gi, other._gi, t)!,
499+
go: TextStyle.lerp(_go, other._go, t)!,
500+
gp: TextStyle.lerp(_gp, other._gp, t)!,
501+
gs: TextStyle.lerp(_gs, other._gs, t)!,
502+
gu: TextStyle.lerp(_gu, other._gu, t)!,
503+
gt: TextStyle.lerp(_gt, other._gt, t)!,
504+
kc: TextStyle.lerp(_kc, other._kc, t)!,
505+
kd: TextStyle.lerp(_kd, other._kd, t)!,
506+
kn: TextStyle.lerp(_kn, other._kn, t)!,
507+
kp: TextStyle.lerp(_kp, other._kp, t)!,
508+
kr: TextStyle.lerp(_kr, other._kr, t)!,
509+
kt: TextStyle.lerp(_kt, other._kt, t)!,
510+
m: TextStyle.lerp(_m, other._m, t)!,
511+
s: TextStyle.lerp(_s, other._s, t)!,
512+
na: TextStyle.lerp(_na, other._na, t)!,
513+
nb: TextStyle.lerp(_nb, other._nb, t)!,
514+
nc: TextStyle.lerp(_nc, other._nc, t)!,
515+
no: TextStyle.lerp(_no, other._no, t)!,
516+
nd: TextStyle.lerp(_nd, other._nd, t)!,
517+
ni: TextStyle.lerp(_ni, other._ni, t)!,
518+
ne: TextStyle.lerp(_ne, other._ne, t)!,
519+
nf: TextStyle.lerp(_nf, other._nf, t)!,
520+
nl: TextStyle.lerp(_nl, other._nl, t)!,
521+
nn: TextStyle.lerp(_nn, other._nn, t)!,
522+
nt: TextStyle.lerp(_nt, other._nt, t)!,
523+
nv: TextStyle.lerp(_nv, other._nv, t)!,
524+
nx: TextStyle.lerp(_nx, other._nx, t)!,
525+
ow: TextStyle.lerp(_ow, other._ow, t)!,
526+
w: TextStyle.lerp(_w, other._w, t)!,
527+
mf: TextStyle.lerp(_mf, other._mf, t)!,
528+
mh: TextStyle.lerp(_mh, other._mh, t)!,
529+
mi: TextStyle.lerp(_mi, other._mi, t)!,
530+
mo: TextStyle.lerp(_mo, other._mo, t)!,
531+
sb: TextStyle.lerp(_sb, other._sb, t)!,
532+
sc: TextStyle.lerp(_sc, other._sc, t)!,
533+
sd: TextStyle.lerp(_sd, other._sd, t)!,
534+
s2: TextStyle.lerp(_s2, other._s2, t)!,
535+
se: TextStyle.lerp(_se, other._se, t)!,
536+
sh: TextStyle.lerp(_sh, other._sh, t)!,
537+
si: TextStyle.lerp(_si, other._si, t)!,
538+
sx: TextStyle.lerp(_sx, other._sx, t)!,
539+
sr: TextStyle.lerp(_sr, other._sr, t)!,
540+
s1: TextStyle.lerp(_s1, other._s1, t)!,
541+
ss: TextStyle.lerp(_ss, other._ss, t)!,
542+
bp: TextStyle.lerp(_bp, other._bp, t)!,
543+
vc: TextStyle.lerp(_vc, other._vc, t)!,
544+
vg: TextStyle.lerp(_vg, other._vg, t)!,
545+
vi: TextStyle.lerp(_vi, other._vi, t)!,
546+
il: TextStyle.lerp(_il, other._il, t)!,
547547
);
548548
}
549549
}

0 commit comments

Comments
 (0)