Skip to content

Commit 2f447cc

Browse files
authored
feat: Make the Dart class representing the service final (#2178)
Dart classes are, by default, also interfaces. This means that adding a new method to a class will break any code that implements it. The most conservative approach is to make the class `final` - we can relax that restriction and make it `base` later, if it makes sense.
1 parent 2aaa878 commit 2f447cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sidekick/internal/dart/templates/lib/service.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
{{#Codec.DocLines}}
1818
{{{.}}}
1919
{{/Codec.DocLines}}
20-
class {{Codec.Name}} {
20+
final class {{Codec.Name}} {
2121
static const String _host = '{{DefaultHost}}';
2222
2323
final ServiceClient _client;

0 commit comments

Comments
 (0)