updateShouldNotify method

  1. @override
bool updateShouldNotify(
  1. covariant CardSettings old
)
override

notify child widgets if a setting changes on the overall wrapper

Implementation

@override
bool updateShouldNotify(CardSettings old) {
  if (labelAlign != old.labelAlign) return true;
  if (labelWidth != old.labelWidth) return true;
  if (labelPadding != old.labelPadding) return true;
  if (labelSuffix != old.labelSuffix) return true;
  if (contentAlign != old.contentAlign) return true;
  return false;
}