safe_config icon indicating copy to clipboard operation
safe_config copied to clipboard

Throws runtime error.in configuration.dart

Open SudhindraAnegondhi opened this issue 5 years ago • 1 comments

On attempting to run, the following error is thrown:

../../../.pub-cache/hosted/pub.dartlang.org/safe_config-2.0.2/lib/src/configuration.dart:86:42: Error: The argument type 'Type' can't be assigned to the parameter type 'String'.
 - 'Type' is from 'dart:core'.
            throw ConfigurationException(runtimeType, "The value '${actualValue}' is not assignable to the field '$name'.");

SudhindraAnegondhi avatar Sep 16 '20 16:09 SudhindraAnegondhi

ConfigurationException defines runtimeType as String, changing it to Type, solves this issue

SudhindraAnegondhi avatar Sep 16 '20 16:09 SudhindraAnegondhi