DrTextTransitionTitleObject constructor

DrTextTransitionTitleObject(
  1. String _name,
  2. String _heroTag,
  3. Widget _function, {
  4. List<DrTextTransitionTitleObject>? newTitles,
  5. bool personalized = false,
  6. Widget? overrideWidget,
  7. Function? overrideAction,
  8. TextStyle? style,
  9. Widget? header,
  10. double? headerHeight,
  11. double paddingLeft = 0,
})

Implementation

DrTextTransitionTitleObject(this._name, this._heroTag, this._function,
    {List<DrTextTransitionTitleObject>? newTitles,
    bool personalized = false,
    Widget? overrideWidget,
    Function? overrideAction,
    TextStyle? style,
    Widget? header,
    double? headerHeight,
    double paddingLeft = 0}) {
  this._personalized = personalized;
  this._overrideWidget = overrideWidget;
  this._overrideAction = overrideAction;
  if (this._personalized == true && this._overrideWidget == null)
    throw new Exception(
        "NetflixAppBar Exception: you can't set title as personalized but it's overrideWidget property as null");
  this.newTitles = newTitles;
  this.headerHeight = headerHeight;
  this.header = header;
  this.paddingLeft = paddingLeft;
  this.style = style;
}