make method
Implementation
Image make() {
if (_alignment != null && _repeat != null) {
return Image.asset(
'${_resourceName ?? ''}.${_suffix ?? _defaultSuffix}',
package: _package,
width: _width,
height: _height,
scale: _scale,
color: _color,
fit: _fit,
opacity: _opacity,
colorBlendMode: _colorBlendMode,
centerSlice: _centerSlice,
alignment: _alignment!,
repeat: _repeat!,
);
} else if (_alignment != null) {
return Image.asset(
'${_resourceName ?? ''}.${_suffix ?? _defaultSuffix}',
package: _package,
width: _width,
height: _height,
scale: _scale,
color: _color,
fit: _fit,
opacity: _opacity,
colorBlendMode: _colorBlendMode,
centerSlice: _centerSlice,
alignment: _alignment!,
);
} else if (_repeat != null) {
return Image.asset(
'${_resourceName ?? ''}.${_suffix ?? _defaultSuffix}',
package: _package,
width: _width,
height: _height,
scale: _scale,
color: _color,
fit: _fit,
opacity: _opacity,
colorBlendMode: _colorBlendMode,
centerSlice: _centerSlice,
repeat: _repeat!,
);
}
return Image.asset(
'${_resourceName ?? ''}.${_suffix ?? _defaultSuffix}',
package: _package,
width: _width,
height: _height,
scale: _scale,
color: _color,
fit: _fit,
opacity: _opacity,
colorBlendMode: _colorBlendMode,
centerSlice: _centerSlice,
);
}