copyWith method

IndentGuide copyWith({
  1. double? indent,
  2. EdgeInsetsGeometry? padding,
  3. int? maxLevel,
})

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

Implementation

IndentGuide copyWith({
  double? indent,
  EdgeInsetsGeometry? padding,
  int? maxLevel,
}) {
  return IndentGuide(
    indent: indent ?? this.indent,
    padding: padding ?? this.padding,
    maxLevel: maxLevel ?? this.maxLevel,
  );
}