diff --git a/packages/html_builder/CHANGELOG.md b/packages/html_builder/CHANGELOG.md
index 0e29ed27..becbacb2 100644
--- a/packages/html_builder/CHANGELOG.md
+++ b/packages/html_builder/CHANGELOG.md
@@ -1,3 +1,6 @@
+# 2.0.1
+* Added pedantic dart rules
+
# 2.0.0
* Migrated to work with Dart SDK 2.12.x NNBD
diff --git a/packages/html_builder/README.md b/packages/html_builder/README.md
index 71e787fc..2e26019b 100644
--- a/packages/html_builder/README.md
+++ b/packages/html_builder/README.md
@@ -1,5 +1,5 @@
# angel3_html_builder
-[![version](https://img.shields.io/badge/pub-v2.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_html_builder)
+[![version](https://img.shields.io/badge/pub-v2.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_html_builder)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
diff --git a/packages/html_builder/analysis_options.yaml b/packages/html_builder/analysis_options.yaml
index eae1e42a..c5667a80 100644
--- a/packages/html_builder/analysis_options.yaml
+++ b/packages/html_builder/analysis_options.yaml
@@ -1,3 +1,5 @@
+include: package:pedantic/analysis_options.yaml
+
analyzer:
strong-mode:
implicit-casts: false
\ No newline at end of file
diff --git a/packages/html_builder/lib/elements.dart b/packages/html_builder/lib/elements.dart
index fb1df3ba..757a0689 100644
--- a/packages/html_builder/lib/elements.dart
+++ b/packages/html_builder/lib/elements.dart
@@ -33,10 +33,10 @@ Node a(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'a',
_apply([
@@ -50,35 +50,35 @@ Node a(
'class': className,
'style': style,
}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node abbr(
{String? title,
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'addr',
_apply([p, props],
{'title': title, 'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node address(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'address',
_apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node area(
{String? alt,
@@ -95,8 +95,8 @@ Node area(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {}}) =>
+ Map p = const {},
+ @deprecated Map props = const {}}) =>
SelfClosingNode(
'area',
_apply([
@@ -122,25 +122,25 @@ Node area(
Node article(
{className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h('article', _apply([p, props], {'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node aside(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'aside',
_apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node audio(
{bool? autoplay,
@@ -152,10 +152,10 @@ Node audio(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'audio',
_apply([
@@ -172,18 +172,18 @@ Node audio(
'class': className,
'style': style
}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node b(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h('b', _apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node base(
{String? href,
@@ -191,8 +191,8 @@ Node base(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {}}) =>
+ Map p = const {},
+ @deprecated Map props = const {}}) =>
SelfClosingNode(
'base',
_apply([
@@ -210,55 +210,55 @@ Node bdi(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h('bdi', _apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node bdo(
{String? dir,
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'bdo',
_apply([p, props],
{'dir': dir, 'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node blockquote(
{String? cite,
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'blockquote',
_apply([p, props],
{'cite': cite, 'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node body(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'body',
_apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node br() => SelfClosingNode('br');
@@ -277,10 +277,10 @@ Node button(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'button',
_apply([
@@ -302,7 +302,7 @@ Node button(
'class': className,
'style': style
}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node canvas(
{num? height,
@@ -310,10 +310,10 @@ Node canvas(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'canvas',
_apply([
@@ -326,100 +326,100 @@ Node canvas(
'class': className,
'style': style
}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node cite(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'cite',
_apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node caption(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'caption',
_apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node code(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'code',
_apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node col(
{num? span,
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'col',
_apply([p, props],
{'span': span, 'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node colgroup(
{num? span,
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'colgroup',
_apply([p, props],
{'span': span, 'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node datalist(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'datalist',
_apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node dd(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h('dd', _apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node del(
{String? cite,
@@ -427,10 +427,10 @@ Node del(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'del',
_apply([
@@ -443,96 +443,96 @@ Node del(
'class': className,
'style': style
}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node details(
{bool? open,
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'details',
_apply([p, props],
{'open': open, 'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node dfn(
{String? title,
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'dfn',
_apply([p, props],
{'title': title, 'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node dialog(
{bool? open,
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'dialog',
_apply([p, props],
{'open': open, 'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node div(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h('div', _apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node dl(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h('dl', _apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node dt(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h('dt', _apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node em(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h('em', _apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node embed(
{num? height,
@@ -542,8 +542,8 @@ Node embed(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {}}) =>
+ Map p = const {},
+ @deprecated Map props = const {}}) =>
SelfClosingNode(
'embed',
_apply([
@@ -566,10 +566,10 @@ Node fieldset(
String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'fieldset',
_apply([
@@ -583,46 +583,46 @@ Node fieldset(
'class': className,
'style': style
}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node figcaption(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable c: const [],
- @deprecated Iterable children: const []}) =>
+ Map p = const {},
+ @deprecated Map props = const {},
+ Iterable c = const [],
+ @deprecated Iterable children = const []}) =>
h(
'figcaption',
_apply([p, props], {'id': id, 'class': className, 'style': style}),
- []..addAll(c)..addAll(children));
+ [...c, ...children]);
Node figure(
{String? id,
className,
style,
- Map p: const {},
- @deprecated Map props: const {},
- Iterable