decorator library

Classes

Feature
A class of constants that represent the features that a browser supports.

Properties

defaultFeatureCssClassDecorators List<Feature>
The Features that decorateRootNodeWithPlatformClasses will produce CSS classes for no matter what.
final

Functions

decorateRootNodeWithPlatformClasses({List<Feature> features = const [], bool includeDefaults = true, Element? rootNode, VoidCallback? callback}) → void
Appends CSS classes generated by getPlatformClasses to the specified rootNode.
getPlatformClasses({List<Feature> features = const [], bool includeDefaults = true, List<String> existingClasses = const []}) String
Generates CSS classes based on the current browser, operatingSystem and optionally, features that your app may need conditional styling for in addition to the defaultFeatureCssClassDecorators that will have CSS classes present by default.