withAnisotropy method
This sampler with its anisotropy replaced.
A copy rather than a setter because the class is a value, and a
method rather than a copyWith because this is the one field a caller
ever decides at run time — the filters and wrap modes are a property of
the asset, the tap count a property of the device it lands on.
Implementation
SamplerOptions withAnisotropy(int anisotropy) => SamplerOptions(
minFilter: minFilter,
magFilter: magFilter,
mipFilter: mipFilter,
widthAddressMode: widthAddressMode,
heightAddressMode: heightAddressMode,
anisotropy: anisotropy,
);