mirror of
https://github.com/Iconica-Development/flutter_registration.git
synced 2025-05-19 05:23:43 +02:00
22 lines
394 B
Dart
22 lines
394 B
Dart
// SPDX-FileCopyrightText: 2022 Iconica
|
|
//
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
abstract class AuthField {
|
|
AuthField({
|
|
required this.name,
|
|
this.title,
|
|
this.validators = const [],
|
|
this.value = '',
|
|
});
|
|
|
|
final String name;
|
|
final Widget? title;
|
|
List<String? Function(String?)> validators;
|
|
String value;
|
|
|
|
Widget build();
|
|
}
|