I hereby claim:
- I am chralu on github.
- I am chralu (https://keybase.io/chralu) on keybase.
- I have a public key ASBz-T9RRueGOnDfznGTvyOiIgKfMeWFPjY3PMFmPWGY6go
To claim this, I am signing this object:
import { Octokit, RestEndpointMethodTypes } from "@octokit/rest" | |
import 'dotenv/config' | |
class GhOrg { | |
octokit: Octokit | |
owner: string | |
constructor(params: { token: string, owner: string }) { | |
this.owner = params.owner | |
this.octokit = new Octokit({ auth: params.token }) |
import 'dart:async'; | |
import 'dart:core'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
/// Keeps track of alive providers. | |
/// | |
/// > Usage in production is not recommended. | |
/// |
I hereby claim:
To claim this, I am signing this object:
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
import 'package:flutter/material.dart'; | |
class ColumnDemo extends StatelessWidget { | |
const ColumnDemo({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Column( | |
textDirection: TextDirection.ltr, | |
crossAxisAlignment: CrossAxisAlignment.center, // Positionnement horizontal |
class Logger { | |
static Logger instance = Logger(); | |
static void debug(String message) => instance.log( | |
level: "DEBUG", | |
message: message, | |
); | |
static void info(String message) => instance.log( | |
level: "INFO", |
const daysInYear = 365; | |
class Person { | |
final String firstname; | |
final String lastname; | |
final double? weight; | |
final DateTime birthdate; | |
Person({ | |
required this.firstname, |
class Person { | |
static const daysInYear = 365; | |
final String firstname; | |
final String lastname; | |
final double? weight; | |
final DateTime birthdate; | |
Person({ | |
required this.firstname, |
class Person { | |
final String firstname; | |
final String lastname; | |
final double? weight; | |
Person({ | |
required this.firstname, | |
required this.lastname, | |
this.weight, | |
}); |
class Person { | |
final String firstname; | |
final String lastname; | |
final double? weight; | |
// Constructeur avec des paramètres | |
// nommés. | |
Person({ | |
required this.firstname, | |
required this.lastname, |