xxxxxxxxxx
AppBar(
// ignore: prefer_const_constructors
title:Text('Register'),
),
xxxxxxxxxx
// ignore_for_file: prefer_const_constructors
import 'dart:async';
import 'package:flutter/material.dart';
xxxxxxxxxx
It is recommended to use const constructors whenever possible when creating Flutter widgets.
The reason is the performance increase,
since Flutter can save some calculations by understanding that it can reuse that widget from a previous redraw in the current one,
since it is a constant value.