feat: make text wrapper constructor constant

This commit is contained in:
Malo Léon 2023-02-08 21:33:23 +01:00 committed by Hugo Pointcheval
parent 9c8aa8ef2c
commit 91bbbaee64
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC

View File

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