imageProviderFor function
The image provider for segment: its WheelSegment.imageProvider, or
one created from its WheelSegment.path. Null if it has neither.
Implementation
ImageProvider? imageProviderFor(WheelSegment segment) {
if (segment.imageProvider != null) return segment.imageProvider;
final String path = segment.path ?? '';
if (path.isEmpty) return null;
return _providerForPath(path);
}