-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-formatted all code, added a few more lint rules. (Resolves #23)
- Loading branch information
1 parent
71ec7e2
commit aabcea8
Showing
66 changed files
with
1,058 additions
and
1,066 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
include: package:lints/recommended.yaml | ||
|
||
linter: | ||
rules: | ||
- always_use_package_imports | ||
- avoid_print | ||
- curly_braces_in_flow_control_structures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import 'package:xml/xml.dart'; | ||
|
||
class AtomCategory { | ||
final String? term; | ||
final String? scheme; | ||
final String? label; | ||
|
||
const AtomCategory(this.term, this.scheme, this.label); | ||
|
||
factory AtomCategory.parse(XmlElement element) { | ||
final term = element.getAttribute('term'); | ||
final scheme = element.getAttribute('scheme'); | ||
final label = element.getAttribute('label'); | ||
return AtomCategory(term, scheme, label); | ||
} | ||
|
||
const AtomCategory(this.term, this.scheme, this.label); | ||
|
||
final String? term; | ||
final String? scheme; | ||
final String? label; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
import 'package:xml/xml.dart'; | ||
|
||
class AtomGenerator { | ||
final String? uri; | ||
final String? version; | ||
final String? value; | ||
|
||
const AtomGenerator(this.uri, this.version, this.value); | ||
|
||
static AtomGenerator? parse(XmlElement? element) { | ||
if (element == null) { | ||
return null; | ||
} | ||
|
||
final uri = element.getAttribute('uri'); | ||
final version = element.getAttribute('version'); | ||
final value = element.innerText; | ||
return AtomGenerator(uri, version, value); | ||
} | ||
|
||
const AtomGenerator(this.uri, this.version, this.value); | ||
|
||
final String? uri; | ||
final String? version; | ||
final String? value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.