getThemedAsset static method

String getThemedAsset(
  1. BuildContext context,
  2. String assetName
)

Implementation

static String getThemedAsset(BuildContext context, String assetName) {
  if (ReownAppKitModalTheme.maybeOf(context)?.isDarkMode == true) {
    return 'lib/modal/assets/dark/$assetName';
  }
  return 'lib/modal/assets/light/$assetName';
}