toProps method

Map toProps()

Returns a Map with the CssClassPropsMixin.className and CssClassPropsMixin.classNameBlacklist props populated from the return values of toClassName and toClassNameBlacklist, respectively.

This method, along with addFromProps, is useful for merging sets of className/blacklist props.

Implementation

Map toProps() {
  return CssClassPropsMapView({})
    ..className = toClassName()
    ..classNameBlacklist = toClassNameBlacklist();
}