Page constructor

Page({
  1. String? name,
  2. String? content,
  3. Iterable<Page>? subpages,
})

Implementation

factory Page({
  $core.String? name,
  $core.String? content,
  $core.Iterable<Page>? subpages,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (content != null) {
    _result.content = content;
  }
  if (subpages != null) {
    _result.subpages.addAll(subpages);
  }
  return _result;
}