Skip to content

Instantly share code, notes, and snippets.

View CristhianLara1996's full-sized avatar

Cristhian CristhianLara1996

View GitHub Profile
@CristhianLara1996
CristhianLara1996 / Result.dart
Last active February 8, 2024 23:28
Functional programming (Minimalistal)
import 'package:equatable/equatable.dart';
//
// Copyright (c) 2024 Laraveloper
//
//////////////// Result.dart
/// Result is a type that represents either success (`Ok`) or failure (`Err`).
///
/// `Result<T, E>` is the type used for returning and propagating errors. It is
/// an object with an `Ok` value, representing success and containing a value,
class InputPhone extends StatelessWidget {
/// Creates a phone input widget.
const InputPhone(
this.label, {
Key? key,
...
}) : super(key: key);
final String label;