Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rk0cc committed Jan 11, 2024
1 parent e22d5ed commit 213bb7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions model/lib/src/exception/unnamed_prefix.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ part of '../fetch/fetch.dart';

/// Combined notations of [StateError] and [ArgumentError] that
/// [MetaPropertyParser.propertyNamePrefix] is an empty [String].
///
///
/// This exception will be happened in [MetaFetch] only when
/// related [MetaPropertyParser] is attempted to interact with
/// [MetaFetch].
Expand All @@ -15,13 +15,14 @@ final class UnnamedMetaPropertyPrefixError extends StateError
final String? name;

UnnamedMetaPropertyPrefixError._(this._parser,
{this.name, String message =
{this.name,
String message =
"This parser contains unnamed property prefix which should not be accepted."})
: super(message);

/// An invalid value that causes [UnnamedMetaPropertyPrefixError]
/// thrown.
///
///
/// It typically is [MetaPropertyParser.propertyNamePrefix]
/// which occured if contains nothing.
@override
Expand Down
6 changes: 3 additions & 3 deletions model/lib/src/fetch/fetch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ abstract final class MetaFetch {
/// Specify which prefix should be resolve at first.
///
/// If it applied as [Null], this feature will be disabled.
///
///
/// It should not be assigned as empty [String]. Otherwise,
/// [ArgumentError] will be thrown.
set primaryPrefix(String? prefix) {
Expand Down Expand Up @@ -209,7 +209,7 @@ abstract final class MetaFetch {
/// Register [parser] into [MetaFetch].
///
/// It returns `true` if registered sucessfully.
///
///
/// Attaching [parser] with empty [MetaPropertyParser.propertyNamePrefix]
/// is forbidden and [UnnamedMetaPropertyPrefixError] will be thrown
/// if attempted.
Expand All @@ -227,7 +227,7 @@ abstract final class MetaFetch {
///
/// In additions, if [prefix] is the same value of [primaryPrefix],
/// it will reset to [Null].
///
///
/// Since empty [MetaPropertyParser.propertyNamePrefix] is forbidden
/// in [register], it also throws [ArgumentError] is [prefix]
/// is an empty [String].
Expand Down
2 changes: 1 addition & 1 deletion model/lib/src/parser/property_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract base mixin class MetaPropertyParser {
/// |:-----------------:|:---------------------:|:------------:|
/// |Open Graph Protocol| `og` | `og:title` |
/// | Twitter Card | `twitter` |`twitter:card`|
///
///
/// This property must return non-empty [String] to recognise corresponded
/// parser in [MetaFetch]. If offered it empty, majority operations
/// done in [MetaFetch] will throw [ArgumentError].
Expand Down

0 comments on commit 213bb7b

Please sign in to comment.