resolve method

CodeBlockStyle resolve(
  1. ColorScheme scheme
)

This style with every remaining default filled in.

Implementation

CodeBlockStyle resolve(ColorScheme scheme) {
  return CodeBlockStyle(
    backgroundColor: backgroundColor ?? scheme.onInverseSurface,
    borderColor: borderColor,
    borderWidth: borderWidth ?? 1,
    borderRadius: borderRadius ?? const Radius.circular(8),
    padding: padding ?? const EdgeInsets.all(16),
    headerPadding:
        headerPadding ??
        const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
    fontFamily: fontFamily,
    fontFamilyPackage: fontFamilyPackage,
    fontSize: fontSize,
    textColor: textColor,
    showLanguageLabel: showLanguageLabel ?? true,
    languageStyle: languageStyle,
    showCopyButton: showCopyButton ?? true,
    copyLabel: copyLabel ?? 'Copy code',
    copiedLabel: copiedLabel ?? 'Copied!',
  );
}