The Gemini review of the initial import of mustache_template flagged some latent issues in the error handling, which would be good to resolve:
- There are several lines that call
_error but don't throw the returned exception, making it basically a no-op, when it seems like it was intended to throw an exception.
- Some code that should be unreachable throws
Exception when a more idiomatic Dart approach would be to throw StateError.
The Gemini review of the initial import of
mustache_templateflagged some latent issues in the error handling, which would be good to resolve:_errorbut don't throw the returned exception, making it basically a no-op, when it seems like it was intended to throw an exception.Exceptionwhen a more idiomatic Dart approach would be to throwStateError.