Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class _MyHomePageState extends State<MyHomePage> {
style: TextStyle(color: Colors.black),
decoration: InputDecoration(hintText: "Amount"),
validator: (value) =>
value.isNotEmpty ? null : "Amount is required",
value!.isNotEmpty ? null : "Amount is required",
),
),
Container(
Expand All @@ -79,7 +79,7 @@ class _MyHomePageState extends State<MyHomePage> {
hintText: "Currency",
),
validator: (value) =>
value.isNotEmpty ? null : "Currency is required",
value!.isNotEmpty ? null : "Currency is required",
),
),
Container(
Expand Down Expand Up @@ -165,7 +165,7 @@ class _MyHomePageState extends State<MyHomePage> {
}

_onPressed() {
if (this.formKey.currentState.validate()) {
if (this.formKey.currentState!.validate()) {
this._handlePaymentInitialization();
}
}
Expand Down
Loading