Skip to content

Commit

Permalink
Merge pull request #18 from benhurott/fix/0.7.0
Browse files Browse the repository at this point in the history
fix(0.7.0): removing braces from anon func
  • Loading branch information
Ben-hur Santos Ott authored Nov 12, 2018
2 parents 65e89cd + 56bbfbd commit efcee79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 39 deletions.
14 changes: 7 additions & 7 deletions example/masked_text_sample/lib/flutter_masked_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class MaskedTextController extends TextEditingController {

Map<String, RegExp> translator;

Function afterChange = ({String previous, String next}) {};
Function beforeChange = ({String previous, String next}) {
Function afterChange = (String previous, String next) {};
Function beforeChange = (String previous, String next) {
return true;
};

Expand Down Expand Up @@ -114,10 +114,10 @@ class MaskedTextController extends TextEditingController {
class MoneyMaskedTextController extends TextEditingController {
MoneyMaskedTextController(
{double initialValue = 0.0,
this.decimalSeparator = ',',
this.thousandSeparator = '.',
this.rightSymbol = '',
this.leftSymbol = ''}) {
this.decimalSeparator = ',',
this.thousandSeparator = '.',
this.rightSymbol = '',
this.leftSymbol = ''}) {
_validateConfig();

this.addListener(() {
Expand Down Expand Up @@ -198,7 +198,7 @@ class MoneyMaskedTextController extends TextEditingController {

String _applyMask(double value) {
String textRepresentation =
value.toStringAsFixed(2).replaceAll('.', this.decimalSeparator);
value.toStringAsFixed(2).replaceAll('.', this.decimalSeparator);

List<String> numberParts = [];

Expand Down
30 changes: 0 additions & 30 deletions example/masked_text_sample/test/widget_test.dart

This file was deleted.

4 changes: 2 additions & 2 deletions lib/flutter_masked_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class MaskedTextController extends TextEditingController {

Map<String, RegExp> translator;

Function afterChange = ({String previous, String next}) {};
Function beforeChange = ({String previous, String next}) {
Function afterChange = (String previous, String next) {};
Function beforeChange = (String previous, String next) {
return true;
};

Expand Down

0 comments on commit efcee79

Please sign in to comment.