-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ca7dc0
commit 1685471
Showing
4 changed files
with
44 additions
and
6 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class RequiredMethodNotFoundException extends Exception { | ||
factory RequiredMethodNotFoundException({String message, String name}) => _RequiredMethodNotFoundException(message: message, name: name); | ||
} | ||
|
||
class _RequiredMethodNotFoundException implements RequiredMethodNotFoundException { | ||
final message; | ||
|
||
final String name; | ||
|
||
_RequiredMethodNotFoundException({this.message, this.name}); | ||
|
||
String toString() { | ||
if (message == null) return "Exception: required method not found: '${this.name}'"; | ||
return "Exception: $message"; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class SymbolUtil { | ||
static toChars(Symbol symbol) { | ||
String str = symbol.toString(); | ||
str = str.replaceRange(str.length - 2, str.length, ''); | ||
return str.replaceRange(0, 8, ''); | ||
} | ||
} |