Skip to content

Instantly share code, notes, and snippets.

View MichaelMarner's full-sized avatar

Michael Marner MichaelMarner

View GitHub Profile
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => MaterialApp(
title: 'CachedNetworkImage Hero',
theme: ThemeData(primarySwatch: Colors.blue),
@MichaelMarner
MichaelMarner / SampleDto.ts
Last active October 3, 2023 06:42
nullable example DTO
export class NestedTypeDto {
@ApiProperty({
type: string
})
value: string;
}
export class SampleDto {
@ApiProperty({
type: NestedTypeDto,