copyWith method Null safety

ScaffoldGeometry copyWith(
  1. {double? bottomNavigationBarTop,
  2. Rect? floatingActionButtonArea}
)

Creates a copy of this ScaffoldGeometry but with the given fields replaced with the new values.

Implementation

ScaffoldGeometry copyWith({
  double? bottomNavigationBarTop,
  Rect? floatingActionButtonArea,
}) {
  return ScaffoldGeometry(
    bottomNavigationBarTop: bottomNavigationBarTop ?? this.bottomNavigationBarTop,
    floatingActionButtonArea: floatingActionButtonArea ?? this.floatingActionButtonArea,
  );
}