getImage method

Image getImage(
  1. BuildContext context
)

Implementation

Image getImage(BuildContext context) {
  final isDark = Theme.of(context).brightness == Brightness.dark;

  return Image.asset(
    this.getAssetFullPath(isDark ? darkSuffix : lightSuffix),
    scale: scale,
    width: width,
    height: height,
    color: color,
  );
}