copyWith method

  1. @override
Variable copyWith({
  1. ID? id,
  2. String? name,
  3. VariableTypes? type,
  4. bool? isGlobal,
  5. bool? isSavedLocally,
  6. bool? isNullable,
  7. FlutterListViewController? scrollController,
  8. dynamic onReorder(
    1. int oldIndex,
    2. int newIndex
    )?,
})
override

Implementation

@override
Variable copyWith({
  ID? id,
  String? name,
  VariableTypes? type,
  bool? isGlobal,
  bool? isSavedLocally,
  bool? isNullable,
  FlutterListViewController? scrollController,
  Function(int oldIndex, int newIndex)? onReorder,
}) =>
    ListViewControllerVariable(
      id: id ?? this.id,
      name: name ?? this.name,
      scrollController: scrollController ?? this.scrollController,
    );