importStyle function

String importStyle({
  1. Theme? theme,
  2. bool? tags,
})

Implementation

String importStyle({Theme? theme, bool? tags}) {
  String styles = '''<style>
    ${importRootStyle(theme: theme)}
    ${importBaseStyle()}
    ${importClassStyle()}
  </style>''';

  if (tags == false) {
    return styles.replaceFirst('<style>', '').replaceFirst('</style>', '');
  }

  return styles;
}