Skip to content

Commit

Permalink
Keyword new returned to the comments in places where it was removed…
Browse files Browse the repository at this point in the history
… by auto-replace.
  • Loading branch information
Vladimir Minkin committed Aug 13, 2023
1 parent e40f5d2 commit 198a5c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/src/core/Controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Controller implements IController {
* Register an [INotification] to [ICommand] mapping with the [Controller].
*
* - Param [noteName] - the name of the [INotification] to associate the [ICommand] with.
* - Param [commandFactory] - a function that creates a instance of the [ICommand].
* - Param [commandFactory] - a function that creates a new instance of the [ICommand].
*/
void registerCommand(String noteName, Function commandFactory) {
if (!hasCommand(noteName)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/interfaces/IController.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class IController {
* Register an [INotification] to [ICommand] mapping with the [IController].
*
* - Param [noteName] - the name of the [INotification] to associate the [ICommand] with.
* - Param [commandFactory] - a function that creates a instance of the [ICommand].
* - Param [commandFactory] - a function that creates a new instance of the [ICommand].
*/
void registerCommand(String notificationName, Function commandFactory);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/interfaces/IFacade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ abstract class IFacade extends INotifier {
* Register an [INotification] to [ICommand] mapping with the [IController].
*
* - Param [noteName] - the name of the [INotification] to associate the [ICommand] with.
* - Param [commandFactory] - a function that creates a instance of the [ICommand].
* - Param [commandFactory] - a function that creates a new instance of the [ICommand].
*/
void registerCommand(String noteName, Function commandFactory);
void executeCommand(String noteName, [dynamic body = null, String? type]);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/patterns/facade/Facade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Facade implements IFacade {
* Register an [INotification] to [ICommand] mapping with the [Controller].
*
* - Param [noteName] - the name of the [INotification] to associate the [ICommand] with.
* - Param [commandFactory] - a function that creates a instance of the [ICommand].
* - Param [commandFactory] - a function that creates a new instance of the [ICommand].
*/
void registerCommand(String noteName, Function commandFactory) {
controller!.registerCommand(noteName, commandFactory);
Expand Down

0 comments on commit 198a5c1

Please sign in to comment.