RPConsentSection.withParams constructor
Returns a populated object with the given type
.
It is enough to provide only the type
of the section, the title is automatically filled out.
summary is set to null
initially.
Implementation
RPConsentSection.withParams(RPConsentSectionType type,
{Icon customIcon, Image customImage, Widget customIllustration})
// : assert(customIllustration.runtimeType == Icon || customIllustration.runtimeType == Image)
{
this._type = type;
this._summary = null;
this._title = _localizedTitleForConsentSectionType(type);
this.customIllustration = customIllustration;
}