Skip to content

Commit

Permalink
Refactor Formula
Browse files Browse the repository at this point in the history
  • Loading branch information
sunboyy committed Oct 27, 2023
1 parent 66313e1 commit 4d0cbbf
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions lib/src/sheet/formula.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
part of excel;

class Formula {
late String _formula;
final String formula;

Formula._(String formula) {
this._formula = formula;
}
Formula._(this.formula);

/// Helps to initiate a custom formula
///```
Expand All @@ -15,13 +13,8 @@ class Formula {
return Formula._(formula);
}

/// get Formula
get formula {
return this._formula;
}

@override
String toString() {
return this._formula;
return formula;
}
}

0 comments on commit 4d0cbbf

Please sign in to comment.