copyWith method

LMFeedAppBar copyWith({
  1. Widget? leading,
  2. List<Widget>? trailing,
  3. Widget? title,
  4. Function? backButtonCallback,
  5. LMFeedAppBarStyle? style,
})

Implementation

LMFeedAppBar copyWith({
  Widget? leading,
  List<Widget>? trailing,
  Widget? title,
  Function? backButtonCallback,
  LMFeedAppBarStyle? style,
}) {
  return LMFeedAppBar(
    leading: leading ?? this.leading,
    trailing: trailing ?? this.trailing,
    title: title ?? this.title,
    backButtonCallback: backButtonCallback ?? this.backButtonCallback,
    style: style ?? this.style,
  );
}