feat: make text wrapper constructor constant

This commit is contained in:
Malo Léon 2023-02-08 21:33:23 +01:00 committed by Gitea
parent 0132771e17
commit dd75ecfc7a

View File

@ -17,7 +17,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class TextWrapper { class TextWrapper {
TextWrapper(this.text, {this.style}); const TextWrapper(this.text, {this.style});
factory TextWrapper.text(String text) => TextWrapper(text); factory TextWrapper.text(String text) => TextWrapper(text);