flutter_registration/lib/src/model/auth_field.dart

22 lines
402 B
Dart
Raw Normal View History

2022-11-01 09:19:20 +01:00
// SPDX-FileCopyrightText: 2022 Iconica
//
// SPDX-License-Identifier: BSD-3-Clause
2022-09-22 10:09:45 +02:00
import 'package:flutter/material.dart';
abstract class AuthField {
2022-09-20 15:51:22 +02:00
AuthField({
required this.name,
required this.title,
this.validators = const [],
this.value = '',
});
final String name;
final String title;
List<String? Function(String?)> validators;
String value;
2022-09-22 10:09:45 +02:00
Widget build();
2022-09-20 15:51:22 +02:00
}