This is a power of a trinomial, not a binomial so the binomial theorem does not help much.
However, 1,x,x2 are in geometric progression, so we can use a variant of Pascal′striangle to find the coefficients we want. Each term in this variant is the sum of the three terms above it. rather than two...
(i)(1−x+x2)4
1
111
12321
1367631
14101619161041
Hence we find : (1+x+x2)4=1+4x+10x2+16x3+19x4+16x5+10x6+4x7+x8